采集时间日期截取下标位置错误导致匹配失败问题修改
This commit is contained in:
parent
a6deb7c53f
commit
1aa68d4974
|
@ -1181,7 +1181,7 @@ public class GardsSampleDataWebServiceImpl extends ServiceImpl<GardsSampleDataWe
|
|||
//采集开始时间转为字符串
|
||||
String collectStartStr = collectStart.toString();
|
||||
//截取采集开始时间的年月日小时
|
||||
collectStartStr = collectStartStr.substring(0, 14) + ":00:00";
|
||||
collectStartStr = collectStartStr.substring(0, collectStartStr.indexOf(StringPool.COLON)) + ":00:00";
|
||||
//如果采集时间包含当前日期 则正常的读取数据并存入数组
|
||||
if (dayTime.equals(collectStartStr)) {
|
||||
collectStartList.add(collectStart.toString());
|
||||
|
|
Loading…
Reference in New Issue
Block a user