|
@@ -445,6 +445,23 @@ public class KprAimTapWaterBizFun {
|
|
FastJsonUtil.toJSON(recordAllEntity)));
|
|
FastJsonUtil.toJSON(recordAllEntity)));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }else{
|
|
|
|
+ //TODO 说明存在,进行修改
|
|
|
|
+ if(!ObjectUtils.isEmpty(recordAllEntity.get("value"))) {
|
|
|
|
+ int updateCode = getWaterTapWaterApi().updateWaterCollectionRecordAll(String.valueOf(value)," WHERE " +
|
|
|
|
+ "(" +
|
|
|
|
+ " org_name = '" + recordAllEntity.get("org_name") + "' and" +
|
|
|
|
+ " \"time\" = '" + recordAllEntity.get("time") + "' and" +
|
|
|
|
+ " value_tag = '" + recordAllEntity.get("value_tag") + "'" +
|
|
|
|
+ ") ");
|
|
|
|
+ if (updateCode < 0) {
|
|
|
|
+ LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_ERROR
|
|
|
|
+ , mStrClassName
|
|
|
|
+ , mStrClassName
|
|
|
|
+ , String.format("Batch updateWaterCollectionRecordAll 未成功:{%s} ",
|
|
|
|
+ FastJsonUtil.toJSON(recordAllEntity)));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
latch2.countDown();
|
|
latch2.countDown();
|