Browse Source

应急上报

ZeroLiYi 3 months ago
parent
commit
61e96be05b

+ 5 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/emergencySupport/modular/es/service/impl/EsNetworkEntryServiceImpl.java

@@ -127,7 +127,11 @@ public class EsNetworkEntryServiceImpl extends ServiceImpl<EsNetworkEntryMapper,
127
         EsNetworkEntry esNetworkEntry = this.queryEntity(esNetworkEntryEditParam.getId());
127
         EsNetworkEntry esNetworkEntry = this.queryEntity(esNetworkEntryEditParam.getId());
128
         BeanUtil.copyProperties(esNetworkEntryEditParam, esNetworkEntry);
128
         BeanUtil.copyProperties(esNetworkEntryEditParam, esNetworkEntry);
129
         this.updateById(esNetworkEntry);
129
         this.updateById(esNetworkEntry);
130
-
130
+        QueryWrapper<AuditRequest> queryWrapper = new QueryWrapper<>();
131
+        queryWrapper.eq("request_id",esNetworkEntryEditParam.getId());
132
+        if(auditRequestService.getOne(queryWrapper)!=null){
133
+            auditRequestService.remove(queryWrapper);
134
+        }
131
         AuditRequest auditRequest=new AuditRequest();
135
         AuditRequest auditRequest=new AuditRequest();
132
         auditRequest.setType(5);
136
         auditRequest.setType(5);
133
         auditRequest.setStep(1);
137
         auditRequest.setStep(1);