Commit 7b8ba62e by 高晓磊

采砂超采预警记录判断parentId错误

parent 15fa4f4b
......@@ -102,7 +102,7 @@ public class DischargingServiceImpl implements DischargingService {
//生成预警消息的逻辑 如果是小于当前年份的记录,不生成预警
//如果已有parentId 也不触发预警
Boolean ltYear = DateTimeUtils.isLtNowYear(dischargingTime);
if (!ltYear && kObject.getUuid("parentId") != null) {
if (!ltYear && kObject.getUuid("parentId") == null) {
setWarningRecord(sandMiningAreaId, dischargingTime, sandMiningArea);
}
return uuid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment