wangxuan 8 mesi fa
parent
commit
fd867ea1d1

+ 8 - 2
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxPMQMServiceImpl.java

@@ -3,6 +3,7 @@ package com.rongwei.bscommon.sys.service.impl;
 import cn.hutool.core.date.DateUtil;
 import com.rongwei.bscommon.sys.dao.*;
 import com.rongwei.bscommon.sys.service.ZhcxPMQMService;
+import com.rongwei.bscommon.sys.service.ZhcxPmqManagementDistributionDetailService;
 import com.rongwei.bscommon.sys.utils.ZhcxCommon;
 import com.rongwei.bsentity.domain.ZhcxPmqManagementDo;
 import com.rongwei.bsentity.domain.ZhcxPmqManagementMapDo;
@@ -60,6 +61,9 @@ public class ZhcxPMQMServiceImpl implements ZhcxPMQMService {
     @Autowired
     private ZhcxPMQMDao zhcxPMQMDao;
 
+    @Autowired
+    private ZhcxPmqManagementDistributionDetailService zhcxPmqManagementDistributionDetailService;
+
     @Override
     public List<Map<String, Object>> getPMQMData(Map<String, String> map) {
         List<Map<String, Object>> res = new ArrayList<>();
@@ -184,7 +188,9 @@ public class ZhcxPMQMServiceImpl implements ZhcxPMQMService {
 
     @Override
     public void updateCloseStatusSimple(String id) {
-        ZhcxPmqManagementDo row = managementDao.selectById(id);
+        // 更新第一层的状态
+        zhcxPmqManagementDistributionDetailService.updateClosedStateInFirstFloor(id);
+        /*ZhcxPmqManagementDo row = managementDao.selectById(id);
         Map<String, String> queryMap = new HashMap<>();
         queryMap.put("pid", id);
         List<ZhcxPmqManagementRecoredDo> list = recoredDao.getByPid(queryMap);
@@ -198,7 +204,7 @@ public class ZhcxPMQMServiceImpl implements ZhcxPMQMService {
                 row.setClosestatus("未关闭");
             }
             managementDao.updateById(row);
-        }
+        }*/
     }
 
     @Override