|
@@ -194,15 +194,30 @@ public class ScanController {
|
|
MsReport msReport = msReportMapper.queryMsReportIsXG(userOpen.getUserId());
|
|
MsReport msReport = msReportMapper.queryMsReportIsXG(userOpen.getUserId());
|
|
SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd");
|
|
SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd");
|
|
if (msReport != null) {
|
|
if (msReport != null) {
|
|
- List<MsReport> msReports1 = msReportMapper.queryLateStatus(userOpen.getUserId(), s.format(msReport.getReportDate()));
|
|
|
|
- if (msReports1.size() == 0) {
|
|
|
|
- model.put("collor", "red");
|
|
|
|
- model.put("collor2", "red");
|
|
|
|
- model.put("into", "不许进入");
|
|
|
|
- model.put("errorMsg", "由于您上报过新冠确诊、新冠疑似或密切接触者,且未解除医学隔离,不许进入,如有疑问请联系直管领导。");
|
|
|
|
- scanService.saveOutScan(userOpen.getUserId(), inType, coord, address, uptownDoor.getUptownId(), uptownDoor.getDoorId(), -1, model.get("errorMsg").toString());
|
|
|
|
- return new ModelAndView("/user/scan.ftl", model);
|
|
|
|
- }
|
|
|
|
|
|
+ model.put("collor", "red");
|
|
|
|
+ model.put("collor2", "red");
|
|
|
|
+ model.put("into", "不许进入");
|
|
|
|
+ model.put("errorMsg", "由于您上报过新冠确诊、新冠疑似或密切接触者,不许进入,如有疑问请联系直管领导。");
|
|
|
|
+ scanService.saveOutScan(userOpen.getUserId(), inType, coord, address, uptownDoor.getUptownId(), uptownDoor.getDoorId(), -1, model.get("errorMsg").toString());
|
|
|
|
+ return new ModelAndView("/user/scan.ftl", model);
|
|
|
|
+// List<MsReport> msReports1 = msReportMapper.queryLateStatus(userOpen.getUserId(), s.format(msReport.getReportDate()));
|
|
|
|
+// if (msReports1.size() == 0) {
|
|
|
|
+// model.put("collor", "red");
|
|
|
|
+// model.put("collor2", "red");
|
|
|
|
+// model.put("into", "不许进入");
|
|
|
|
+// model.put("errorMsg", "由于您上报过新冠确诊、新冠疑似或密切接触者,且未解除医学隔离,不许进入,如有疑问请联系直管领导。");
|
|
|
|
+// scanService.saveOutScan(userOpen.getUserId(), inType, coord, address, uptownDoor.getUptownId(), uptownDoor.getDoorId(), -1, model.get("errorMsg").toString());
|
|
|
|
+// return new ModelAndView("/user/scan.ftl", model);
|
|
|
|
+// }
|
|
|
|
+ }
|
|
|
|
+ Integer isContact = msReportMapper.queryMsReportIsXGHome(userOpen.getUserId());
|
|
|
|
+ if (isContact != null && isContact == 1) {
|
|
|
|
+ model.put("collor", "red");
|
|
|
|
+ model.put("collor2", "red");
|
|
|
|
+ model.put("into", "不许进入");
|
|
|
|
+ model.put("errorMsg", "由于您的家庭成员有新冠确诊或密切接触史人员,不许进入,如有疑问请联系直管领导。");
|
|
|
|
+ scanService.saveOutScan(userOpen.getUserId(), inType, coord, address, uptownDoor.getUptownId(), uptownDoor.getDoorId(), -1, model.get("errorMsg").toString());
|
|
|
|
+ return new ModelAndView("/user/scan.ftl", model);
|
|
}
|
|
}
|
|
List<MsReport> msReports = msReportMapper.selectMsReportLate(userOpen.getUserId());
|
|
List<MsReport> msReports = msReportMapper.selectMsReportLate(userOpen.getUserId());
|
|
if (msReports.size() < 4) {
|
|
if (msReports.size() < 4) {
|
|
@@ -222,6 +237,15 @@ public class ScanController {
|
|
scanService.saveOutScan(userOpen.getUserId(), inType, coord, address, uptownDoor.getUptownId(), uptownDoor.getDoorId(), -1, model.get("errorMsg").toString());
|
|
scanService.saveOutScan(userOpen.getUserId(), inType, coord, address, uptownDoor.getUptownId(), uptownDoor.getDoorId(), -1, model.get("errorMsg").toString());
|
|
return new ModelAndView("/user/scan.ftl", model);
|
|
return new ModelAndView("/user/scan.ftl", model);
|
|
}
|
|
}
|
|
|
|
+ List<MsReport> msReports3 = msReportMapper.selectMsReportThirtyError(userOpen.getUserId());
|
|
|
|
+ if (msReports3.size() > 0) {
|
|
|
|
+ model.put("collor", "red");
|
|
|
|
+ model.put("collor2", "red");
|
|
|
|
+ model.put("into", "不许进入");
|
|
|
|
+ model.put("errorMsg", "由于最近30天您健康评估存在问题,不许进入,如有疑问请联系直管领导。");
|
|
|
|
+ scanService.saveOutScan(userOpen.getUserId(), inType, coord, address, uptownDoor.getUptownId(), uptownDoor.getDoorId(), -1, model.get("errorMsg").toString());
|
|
|
|
+ return new ModelAndView("/user/scan.ftl", model);
|
|
|
|
+ }
|
|
String returnWork = msReportMapper.returnWork(userOpen.getUserId());
|
|
String returnWork = msReportMapper.returnWork(userOpen.getUserId());
|
|
if (returnWork != null) {
|
|
if (returnWork != null) {
|
|
if (sdf.parse(returnWork + " 00:00:00").getTime() + 1000L * 3600 * 24 * 15 > sdf.parse(s.format(new Date()) + " 00:00:00").getTime()) {
|
|
if (sdf.parse(returnWork + " 00:00:00").getTime() + 1000L * 3600 * 24 * 15 > sdf.parse(s.format(new Date()) + " 00:00:00").getTime()) {
|
|
@@ -578,14 +602,27 @@ public class ScanController {
|
|
}
|
|
}
|
|
MsReport msReport = msReportMapper.queryMsReportIsXG(userId);
|
|
MsReport msReport = msReportMapper.queryMsReportIsXG(userId);
|
|
if (msReport != null) {
|
|
if (msReport != null) {
|
|
- List<MsReport> msReports1 = msReportMapper.queryLateStatus(userId, s.format(msReport.getReportDate()));
|
|
|
|
- if (msReports1.size() == 0) {
|
|
|
|
- model.put("collor", "red");
|
|
|
|
- model.put("collor2", "red");
|
|
|
|
- model.put("into", "不可复工");
|
|
|
|
- model.put("errorMsg", "由于您上报过新冠确诊、新冠疑似或密切接触者,且未解除医学隔离,不可复工,如有疑问请联系直管领导。");
|
|
|
|
- return new ModelAndView("/user/returnWork.ftl", model);
|
|
|
|
- }
|
|
|
|
|
|
+ model.put("collor", "red");
|
|
|
|
+ model.put("collor2", "red");
|
|
|
|
+ model.put("into", "不可复工");
|
|
|
|
+ model.put("errorMsg", "由于您上报过新冠确诊、新冠疑似或密切接触者,且未解除医学隔离,不可复工,如有疑问请联系直管领导。");
|
|
|
|
+ return new ModelAndView("/user/returnWork.ftl", model);
|
|
|
|
+// List<MsReport> msReports1 = msReportMapper.queryLateStatus(userId, s.format(msReport.getReportDate()));
|
|
|
|
+// if (msReports1.size() == 0) {
|
|
|
|
+// model.put("collor", "red");
|
|
|
|
+// model.put("collor2", "red");
|
|
|
|
+// model.put("into", "不可复工");
|
|
|
|
+// model.put("errorMsg", "由于您上报过新冠确诊、新冠疑似或密切接触者,且未解除医学隔离,不可复工,如有疑问请联系直管领导。");
|
|
|
|
+// return new ModelAndView("/user/returnWork.ftl", model);
|
|
|
|
+// }
|
|
|
|
+ }
|
|
|
|
+ Integer isContact = msReportMapper.queryMsReportIsXGHome(userId);
|
|
|
|
+ if (isContact != null && isContact == 1) {
|
|
|
|
+ model.put("collor", "red");
|
|
|
|
+ model.put("collor2", "red");
|
|
|
|
+ model.put("into", "不可复工");
|
|
|
|
+ model.put("errorMsg", "由于您的家庭成员有新冠确诊或密切接触史人员,不可复工,如有疑问请联系直管领导。");
|
|
|
|
+ return new ModelAndView("/user/returnWork.ftl", model);
|
|
}
|
|
}
|
|
List<MsReport> msReports = msReportMapper.selectMsReportLate(userId);
|
|
List<MsReport> msReports = msReportMapper.selectMsReportLate(userId);
|
|
if (msReports.size() < 4) {
|
|
if (msReports.size() < 4) {
|
|
@@ -603,6 +640,14 @@ public class ScanController {
|
|
model.put("errorMsg", "由于近期您健康评估存在问题,不可复工,如有疑问请联系直管领导。");
|
|
model.put("errorMsg", "由于近期您健康评估存在问题,不可复工,如有疑问请联系直管领导。");
|
|
return new ModelAndView("/user/returnWork.ftl", model);
|
|
return new ModelAndView("/user/returnWork.ftl", model);
|
|
}
|
|
}
|
|
|
|
+ List<MsReport> msReports3 = msReportMapper.selectMsReportThirtyError(userId);
|
|
|
|
+ if (msReports3.size() > 0) {
|
|
|
|
+ model.put("collor", "red");
|
|
|
|
+ model.put("collor2", "red");
|
|
|
|
+ model.put("into", "不可复工");
|
|
|
|
+ model.put("errorMsg", "由于最近30天您健康评估存在问题,不可复工,如有疑问请联系直管领导。");
|
|
|
|
+ return new ModelAndView("/user/returnWork.ftl", model);
|
|
|
|
+ }
|
|
String returnWork = msReportMapper.returnWork(userId);
|
|
String returnWork = msReportMapper.returnWork(userId);
|
|
if (returnWork != null) {
|
|
if (returnWork != null) {
|
|
if (sdf.parse(returnWork + " 00:00:00").getTime() + 1000L * 3600 * 24 * 15 > sdf.parse(s.format(new Date()) + " 00:00:00").getTime()) {
|
|
if (sdf.parse(returnWork + " 00:00:00").getTime() + 1000L * 3600 * 24 * 15 > sdf.parse(s.format(new Date()) + " 00:00:00").getTime()) {
|