Browse Source

北向 布撤防状态时间 上报人信息未置空问题处理

jingyuanchao 1 year ago
parent
commit
1859fc5e91

+ 7 - 0
soc-modules/soc-modules-mediator/src/main/java/com/xunmei/mediator/api/service/impl/IotAlarmSubSystemServiceImpl.java

@@ -196,6 +196,13 @@ public class IotAlarmSubSystemServiceImpl extends ServiceImpl<IotAlarmSubsystemM
         protection.setStatusUpdatorId(null);
         protection.setStatusUpdatorName(null);
         this.updateById(protection);
+
+        LambdaUpdateWrapper<IotAlarmSubsystem> updateWrapper=new LambdaUpdateWrapper<>();
+        updateWrapper.eq(IotAlarmSubsystem::getId,protection.getId());
+        updateWrapper.set(IotAlarmSubsystem::getStatusUpdatorId,null);
+        updateWrapper.set(IotAlarmSubsystem::getStatusUpdatorName,null);
+        this.update(updateWrapper);
+
         this.northStatisticsSyncService.saveOrUpdateBusinessCountByDateAndDataType(DateUtil.today(), DataType.protectionStatusCount.getIndex(), 1L);
         this.saveProtectionLog(protection);
         return result;