|
@@ -448,10 +448,15 @@ public class MsReportService {
|
|
|
//添加到今天日报
|
|
|
MsReport msReport = msReportMapper.selectById(Long.parseLong(listSuspected.get(0).getReportId().toString()));
|
|
|
Long reportId = 0L;
|
|
|
+ Long houseId = 0L;
|
|
|
if (msReport != null) {
|
|
|
MsReport msReport1 = new MsReport();
|
|
|
msReport1.setReportId(IdWorker.getId());
|
|
|
- msReport1.setHouseId(msReport.getHouseId());
|
|
|
+ if (msReport.getHouseId() == 0L)
|
|
|
+ houseId = msReportMapper.selectHouseIdByUserId(userCreate);
|
|
|
+ else
|
|
|
+ houseId = msReport.getHouseId();
|
|
|
+ msReport1.setHouseId(houseId);
|
|
|
msReport1.setSafetyNum(msReport.getSafetyNum());
|
|
|
msReport1.setSureNum(msReport.getSureNum());
|
|
|
msReport1.setSuspectedNum(msReport.getSuspectedNum());
|
|
@@ -574,43 +579,44 @@ public class MsReportService {
|
|
|
queryParam.put("userCreate", userCreate);
|
|
|
return msReportMapper.selectByReportDateTest(queryParam);
|
|
|
}
|
|
|
+
|
|
|
public List<MsSuspected> getByReportReportDateTestxq(Map<String, Object> queryParam) {
|
|
|
List<MsSuspected> msReports = msReportMapper.selectByReportDateTestxq(queryParam);
|
|
|
- if(msReports.size() != 0){
|
|
|
+ if (msReports.size() != 0) {
|
|
|
for (int i = 0; i < msReports.size(); i++) {
|
|
|
- if(msReports.get(i).getWorkLocal() == 1){
|
|
|
+ if (msReports.get(i).getWorkLocal() == 1) {
|
|
|
msReports.get(i).setWorkLocalOtherStr("武汉市");
|
|
|
- }else if(msReports.get(i).getWorkLocal() == 2){
|
|
|
+ } else if (msReports.get(i).getWorkLocal() == 2) {
|
|
|
msReports.get(i).setWorkLocalOtherStr("宜昌市");
|
|
|
- }else if(msReports.get(i).getWorkLocal() == 3){
|
|
|
+ } else if (msReports.get(i).getWorkLocal() == 3) {
|
|
|
msReports.get(i).setWorkLocalOtherStr("当阳市");
|
|
|
}
|
|
|
- if(msReports.get(i).getTodayLocal() == 1){
|
|
|
+ if (msReports.get(i).getTodayLocal() == 1) {
|
|
|
msReports.get(i).setTodayLocalOtherStr("武汉市");
|
|
|
- }else if(msReports.get(i).getTodayLocal() == 2){
|
|
|
+ } else if (msReports.get(i).getTodayLocal() == 2) {
|
|
|
msReports.get(i).setTodayLocalOtherStr("宜昌市");
|
|
|
- }else if(msReports.get(i).getTodayLocal() == 3){
|
|
|
+ } else if (msReports.get(i).getTodayLocal() == 3) {
|
|
|
msReports.get(i).setTodayLocalOtherStr("当阳市");
|
|
|
}
|
|
|
|
|
|
- if(msReports.get(i).getEndLocal() != null){
|
|
|
- if(msReports.get(i).getEndLocal() == 1){
|
|
|
+ if (msReports.get(i).getEndLocal() != null) {
|
|
|
+ if (msReports.get(i).getEndLocal() == 1) {
|
|
|
msReports.get(i).setEndLocalOtherStr("武汉市");
|
|
|
- }else if(msReports.get(i).getEndLocal() == 2){
|
|
|
+ } else if (msReports.get(i).getEndLocal() == 2) {
|
|
|
msReports.get(i).setEndLocalOtherStr("宜昌市");
|
|
|
- }else if(msReports.get(i).getEndLocal() == 3){
|
|
|
+ } else if (msReports.get(i).getEndLocal() == 3) {
|
|
|
msReports.get(i).setEndLocalOtherStr("当阳市");
|
|
|
}
|
|
|
}
|
|
|
- if(msReports.get(i).getStartLocal() != null){
|
|
|
- if(msReports.get(i).getStartLocal() == 1){
|
|
|
- msReports.get(i).setStartLocalOtherStr("武汉市");
|
|
|
- }else if(msReports.get(i).getStartLocal() == 2){
|
|
|
- msReports.get(i).setStartLocalOtherStr("宜昌市");
|
|
|
- }else if(msReports.get(i).getStartLocal() == 3){
|
|
|
- msReports.get(i).setStartLocalOtherStr("当阳市");
|
|
|
- }
|
|
|
- }
|
|
|
+ if (msReports.get(i).getStartLocal() != null) {
|
|
|
+ if (msReports.get(i).getStartLocal() == 1) {
|
|
|
+ msReports.get(i).setStartLocalOtherStr("武汉市");
|
|
|
+ } else if (msReports.get(i).getStartLocal() == 2) {
|
|
|
+ msReports.get(i).setStartLocalOtherStr("宜昌市");
|
|
|
+ } else if (msReports.get(i).getStartLocal() == 3) {
|
|
|
+ msReports.get(i).setStartLocalOtherStr("当阳市");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|