|
@@ -64,8 +64,9 @@ public class KprAimTapWaterBizFun {
|
|
|
public void function() {
|
|
|
try {
|
|
|
for (int dayNum=0;dayNum<beforeDays;dayNum++) {
|
|
|
+ String dateStr = startDate.minusDays(-dayNum).format(formatter);
|
|
|
List<Map<String, Object>> resHourList = getWaterCollecationApi().getTbMHourwater(false,
|
|
|
- 20, 0, " AND \"orgId\" = '" + org.get("org_id") + "' AND \"Date\" = '" + startDate.minusDays(-dayNum).format(formatter) + "' ORDER BY \"Date\",\"Hour\" ASC ");
|
|
|
+ 20, 0, " AND \"orgId\" = '" + org.get("org_id") + "' AND \"Date\" = '" + dateStr + "' ORDER BY \"Date\",\"Hour\" ASC ");
|
|
|
processWaterData(resHourList);
|
|
|
}
|
|
|
latch.countDown();
|
|
@@ -147,6 +148,7 @@ public class KprAimTapWaterBizFun {
|
|
|
// For example:
|
|
|
double originalValue = queryOriginalValue(quarterHourTime);
|
|
|
newMap.put("HourActualWaterSupply", originalValue);
|
|
|
+ newMap.put("LastModifyTime", LocalDateTime.now().format(DateTimeFormatter.ofPattern(TimeTool.TIMESTAMP_FORMAT)));
|
|
|
|
|
|
// Retain only specific keys
|
|
|
Map<String, Object> filteredMap = filterMap(newMap, "Date", "Hour", "HourForecastActualWaterSupply", "HourActualWaterSupply", "LastModifyTime", "orgId");
|