|
@@ -61,7 +61,11 @@ public class RiBaoService {
|
|
// 删除家人
|
|
// 删除家人
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
public int delRibaoDetail(Long suspectedId) {
|
|
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;
|
|
return ribaoDetail;
|
|
}
|
|
}
|
|
|
|
|
|
// 更新今日日报
|
|
// 更新今日日报
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
@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;
|
|
Integer trueNum = 0, singleNum = 0, isSuspected = 0, isNoSuspected = 0, isFamliy = 0;
|
|
|
|
|