|
@@ -256,7 +256,7 @@ public class MsSuspectedService {
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
public void updateReport(Long reportId, Integer medical, Integer singleRoom, BigDecimal temperature) {
|
|
public void updateReport(Long reportId, Integer medical, Integer singleRoom, BigDecimal temperature) {
|
|
//更新今日日报
|
|
//更新今日日报
|
|
- Integer trueNum = 0, singleNum = 0, isSuspected = 0, isNoSuspected = 0, isFamliy = 0;
|
|
|
|
|
|
+ Integer trueNum = 0, singleNum = 0, isSuspected = 0, isNoSuspected = 0, isFamliy = 0, abnormalNum = 0;
|
|
|
|
|
|
//确诊
|
|
//确诊
|
|
trueNum = msReportMapper.selectSuspectedNum(reportId);
|
|
trueNum = msReportMapper.selectSuspectedNum(reportId);
|
|
@@ -270,6 +270,9 @@ public class MsSuspectedService {
|
|
//疑似
|
|
//疑似
|
|
isNoSuspected = msReportMapper.selectisNoSuspectedNum(reportId);
|
|
isNoSuspected = msReportMapper.selectisNoSuspectedNum(reportId);
|
|
|
|
|
|
|
|
+ //异常人数
|
|
|
|
+ abnormalNum = msReportMapper.selectAbnormalNum(reportId);
|
|
|
|
+
|
|
//今日居家
|
|
//今日居家
|
|
List<MsSuspected> list = msSuspectedMapper.selectByReportId(reportId);
|
|
List<MsSuspected> list = msSuspectedMapper.selectByReportId(reportId);
|
|
if (list != null && list.size() > 0)
|
|
if (list != null && list.size() > 0)
|
|
@@ -281,7 +284,7 @@ public class MsSuspectedService {
|
|
msReport.setSuspectedNum(isNoSuspected);
|
|
msReport.setSuspectedNum(isNoSuspected);
|
|
msReport.setNormalNum(isSuspected);
|
|
msReport.setNormalNum(isSuspected);
|
|
msReport.setSafetyNum(isFamliy);
|
|
msReport.setSafetyNum(isFamliy);
|
|
- if (isNoSuspected > 0)
|
|
|
|
|
|
+ if (isNoSuspected > 0 || abnormalNum > 0)
|
|
msReport.setMsStatus(2);
|
|
msReport.setMsStatus(2);
|
|
else
|
|
else
|
|
msReport.setMsStatus(1);
|
|
msReport.setMsStatus(1);
|
|
@@ -324,8 +327,11 @@ public class MsSuspectedService {
|
|
public Integer addScore(Integer medical, BigDecimal temperature, Integer cough, Integer muscle, Integer dyspnea, Integer fatigue, Integer diarrhea) {
|
|
public Integer addScore(Integer medical, BigDecimal temperature, Integer cough, Integer muscle, Integer dyspnea, Integer fatigue, Integer diarrhea) {
|
|
Integer score = 0;
|
|
Integer score = 0;
|
|
|
|
|
|
- if (medical == 1)
|
|
|
|
|
|
+ //确诊,疑似尽快就医
|
|
|
|
+ if (medical == 1 || medical==2)
|
|
score = 5;
|
|
score = 5;
|
|
|
|
+ else if (medical == 3)
|
|
|
|
+ score = 1;
|
|
else {
|
|
else {
|
|
//温度
|
|
//温度
|
|
score += getTemperatureScore(temperature);
|
|
score += getTemperatureScore(temperature);
|
|
@@ -348,7 +354,10 @@ public class MsSuspectedService {
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
public Integer scoreRezulte(Integer medical, Integer scoreHistory, Integer score) {
|
|
public Integer scoreRezulte(Integer medical, Integer scoreHistory, Integer score) {
|
|
Integer scoreRezult = 0;
|
|
Integer scoreRezult = 0;
|
|
- if (medical == 1) scoreRezult = 4;
|
|
|
|
|
|
+ if (medical == 1 || medical==2)
|
|
|
|
+ scoreRezult = 4;
|
|
|
|
+ else if (medical == 3)
|
|
|
|
+ scoreRezult = 2;
|
|
else {
|
|
else {
|
|
//判断用户是否含有历史评分
|
|
//判断用户是否含有历史评分
|
|
if (scoreHistory == null) {
|
|
if (scoreHistory == null) {
|