|
@@ -170,13 +170,14 @@ public class MsSuspectedService {
|
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
|
public void updateReport(Long reportId, Integer medical, Integer singleRoom, BigDecimal temperature) {
|
|
|
//更新今日日报
|
|
|
+ Integer trueNum = 0, singleNum = 0, isSuspected = 0, isNoSuspected = 0, isFamliy = 0;
|
|
|
+
|
|
|
//确诊
|
|
|
- Integer isTrue = 0, isSingle = 0, isSuspected = 0, isNoSuspected = 0, isFamliy = 0;
|
|
|
- if (medical == 1)
|
|
|
- isTrue = msReportMapper.selectSuspectedNum(reportId, medical);
|
|
|
+ trueNum = msReportMapper.selectSuspectedNum(reportId);
|
|
|
+
|
|
|
//居家隔离
|
|
|
- if (singleRoom == 1)
|
|
|
- isSingle = msReportMapper.selectSingleRoomNum(reportId, singleRoom);
|
|
|
+ singleNum = msReportMapper.selectSingleRoomNum(reportId);
|
|
|
+
|
|
|
//正常
|
|
|
isSuspected = msReportMapper.selectisSuspectedNum(reportId);
|
|
|
|
|
@@ -189,8 +190,8 @@ public class MsSuspectedService {
|
|
|
isFamliy = list.size();
|
|
|
MsReport msReport = msReportMapper.selectById(reportId);
|
|
|
if (msReport != null) {
|
|
|
- msReport.setSureNum(isTrue);
|
|
|
- msReport.setSingleNum(isSingle);
|
|
|
+ msReport.setSureNum(trueNum);
|
|
|
+ msReport.setSingleNum(singleNum);
|
|
|
msReport.setSuspectedNum(isNoSuspected);
|
|
|
msReport.setNormalNum(isSuspected);
|
|
|
msReport.setSafetyNum(isFamliy);
|