|
@@ -45,7 +45,7 @@ public class MsTripService {
|
|
|
public Long addSuspectedTrip(Long suspectedId, String userName, Integer grender, Integer age, String familyStatus,
|
|
|
String statusDesp, Integer medical, BigDecimal temperature, Integer cough, Integer muscle,
|
|
|
Integer dyspnea, Integer fatigue, Integer diarrhea, Integer singleRoom, String others, Long userCreate, Integer scoreRezult, Integer temperatureScore, Integer scoreHistroy, Integer score
|
|
|
- ,Integer isContact ,Integer isSuspected , Integer workLocal, String workLocalOther, Integer todayLocal, String todayLocalOther,String autoLocal, String autoAddr, Integer isTrip, List<MsTripDet> listTripDet) {
|
|
|
+ , Integer isContact, Integer isSuspected, Integer workLocal, String workLocalOther, Integer todayLocal, String todayLocalOther, String autoLocal, String autoAddr, Integer isTrip, List<MsTripDet> listTripDet) {
|
|
|
Long reportId = 0L;
|
|
|
//如果是当前日期 已经添加
|
|
|
Date t = new Date();
|
|
@@ -195,6 +195,17 @@ public class MsTripService {
|
|
|
return 2L;
|
|
|
}
|
|
|
}
|
|
|
+ //判断是否出行
|
|
|
+ //是ly
|
|
|
+ UptownUnit unit = uptownUnitMapper.getUptownUnitByUser(userCreate);
|
|
|
+ if (unit != null) {
|
|
|
+ if (unit.getUptownId() == 1238790987234L || unit.getUptownId() == 5 || unit.getUptownId() == 100000002L) {
|
|
|
+ Integer rezuitNum = msReportService.addReportLy(userCreate, isTrip, todayLocal, todayLocalOther);
|
|
|
+ if (rezuitNum == 4)
|
|
|
+ return 4L;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
MsSuspected msSuspected2 = msSuspectedService.getScore(suspectedId, userName, medical, temperature, cough, muscle, dyspnea, fatigue, diarrhea, userCreate);
|
|
|
if (msSuspected2 != null) {
|
|
|
scoreRezult = msSuspected2.getScoreRezult();
|
|
@@ -275,15 +286,8 @@ public class MsTripService {
|
|
|
}
|
|
|
//更新今日日报,直接上报
|
|
|
msSuspectedService.updateReport(reportId, medical, singleRoom, temperature);
|
|
|
- //是ly
|
|
|
- UptownUnit unit = uptownUnitMapper.getUptownUnitByUser(userCreate);
|
|
|
- if (unit != null) {
|
|
|
- if (unit.getUptownId() == 1238790987234L || unit.getUptownId() == 5 || unit.getUptownId() == 100000002L) {
|
|
|
- Integer rezuitNum = msReportService.addReportLy(reportId,suspectedId,userCreate);
|
|
|
- if (rezuitNum == 4)
|
|
|
- reportId = 4L;
|
|
|
- }
|
|
|
- }
|
|
|
+ //修改上报状态
|
|
|
+ msReportService.editReportLy(reportId, userCreate);
|
|
|
}
|
|
|
return reportId;
|
|
|
}
|