|
@@ -94,7 +94,7 @@ public class MsSuspectedService {
|
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
|
public Long addSuspected(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 dyspnea, Integer fatigue, Integer diarrhea, Integer singleRoom, String others, Long userCreate, Integer scoreRezult, Integer temperatureScore, Integer scoreHistroy, Integer score, String longitude, String latitude) {
|
|
|
Long reportId = 0L;
|
|
|
//如果是当前日期 已经添加
|
|
|
Date t = new Date();
|
|
@@ -241,25 +241,24 @@ public class MsSuspectedService {
|
|
|
}
|
|
|
|
|
|
//更新今日日报
|
|
|
- updateReport(reportId, medical, singleRoom, temperature);
|
|
|
+ updateReport(reportId, medical, singleRoom, temperature, longitude, latitude);
|
|
|
return reportId;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
- @Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
|
- public Integer deleteSuspected(Long suspectedId) {
|
|
|
-
|
|
|
- MsSuspected msSuspected = msSuspectedMapper.selectById(suspectedId);
|
|
|
- if (msSuspected != null) {
|
|
|
- msSuspectedMapper.deleteById(suspectedId);
|
|
|
- //更新今日日报
|
|
|
- updateReport(msSuspected.getReportId(), msSuspected.getMedical(), msSuspected.getSingleRoom(), msSuspected.getTemperature());
|
|
|
- MsReport msReport = msReportMapper.selectById(msSuspected.getReportId());
|
|
|
- if (msReport != null)
|
|
|
- return msReport.getSafetyNum();
|
|
|
- }
|
|
|
- return 0;
|
|
|
- }
|
|
|
+// @Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
|
+// public Integer deleteSuspected(Long suspectedId) {
|
|
|
+//
|
|
|
+// MsSuspected msSuspected = msSuspectedMapper.selectById(suspectedId);
|
|
|
+// if (msSuspected != null) {
|
|
|
+// msSuspectedMapper.deleteById(suspectedId);
|
|
|
+// //更新今日日报
|
|
|
+// updateReport(msSuspected.getReportId(), msSuspected.getMedical(), msSuspected.getSingleRoom(), msSuspected.getTemperature(), longitude, latitude);
|
|
|
+// MsReport msReport = msReportMapper.selectById(msSuspected.getReportId());
|
|
|
+// if (msReport != null)
|
|
|
+// return msReport.getSafetyNum();
|
|
|
+// }
|
|
|
+// return 0;
|
|
|
+// }
|
|
|
|
|
|
//更新今日日报
|
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|