songjiaqing 5 lat temu
rodzic
commit
7466298c68

+ 7 - 3
whepi-web/src/main/java/com/bofeng/service/RiBaoService.java

@@ -61,7 +61,11 @@ public class RiBaoService {
     // 删除家人
     @Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
     public int delRibaoDetail(Long suspectedId) {
-        return msSuspectedMapper.deleteById(suspectedId);
+        MsSuspected msSuspectedDb = msSuspectedMapper.selectById(suspectedId);
+        int num = msSuspectedMapper.deleteById(suspectedId);
+        //更新今日日报
+        updateRibao(msSuspectedDb.getReportId());
+        return num;
     }
 
     // 添加修改家人
@@ -95,14 +99,14 @@ public class RiBaoService {
         }
 
         //更新今日日报
-        updateRibao(ribaoDetail.getReportId(), ribaoDetail.getMedical(), ribaoDetail.getSingleRoom(), ribaoDetail.getTemperature());
+        updateRibao(ribaoDetail.getReportId());
 
         return ribaoDetail;
     }
 
     // 更新今日日报
     @Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
-    public void updateRibao(Long reportId, Integer medical, Integer singleRoom, BigDecimal temperature) {
+    public void updateRibao(Long reportId) {
         //更新今日日报
         Integer trueNum = 0, singleNum = 0, isSuspected = 0, isNoSuspected = 0, isFamliy = 0;