|
@@ -283,6 +283,15 @@ public class ScanController {
|
|
|
// scanService.saveOutScan(userOpen.getUserId(), inType, coord, address, uptownDoor.getUptownId(), uptownDoor.getDoorId(), -1, model.get("errorMsg").toString());
|
|
|
// return new ModelAndView("/user/scan.ftl", model);
|
|
|
// }
|
|
|
+ MsReport msReport1 = msReportMapper.msAddr(userOpen.getUserId());
|
|
|
+ if (msReport1 != null &&msReport1.getWorkMsg() != null &&msReport1.getTodayMsg() != null && !msReport1.getWorkMsg().equals(msReport1.getTodayMsg()) && !compareWhere(msReport1.getWorkMsg(), msReport1.getTodayMsg())) {
|
|
|
+ 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);
|
|
|
+ }
|
|
|
MsTripDet work = msReportMapper.returnWork(userOpen.getUserId());
|
|
|
if (work != null) {
|
|
|
if (ly2 && outUser2.getStartDate().getTime() < s.parse(work.getReturnWork()).getTime()) {
|
|
@@ -305,15 +314,6 @@ public class ScanController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- MsReport msReport1 = msReportMapper.msAddr(userOpen.getUserId());
|
|
|
- if (msReport1 != null &&msReport1.getWorkMsg() != null &&msReport1.getTodayMsg() != null && !msReport1.getWorkMsg().equals(msReport1.getTodayMsg()) && !compareWhere(msReport1.getWorkMsg(), msReport1.getTodayMsg())) {
|
|
|
- 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);
|
|
|
- }
|
|
|
//您近期内离开过工作单位驻地,请遵守返回工作驻地15日隔离规定,您目前未满15日,禁止进入。
|
|
|
model.put("collor", "green");
|
|
|
model.put("collor2", "green");
|
|
@@ -748,6 +748,14 @@ public class ScanController {
|
|
|
// model.put("errorMsg", "由于最近30天您健康评估存在问题,不可复工,如有疑问请联系直管领导。");
|
|
|
// return new ModelAndView("/user/returnWork.ftl", model);
|
|
|
// }
|
|
|
+ MsReport msReport1 = msReportMapper.msAddr(userId);
|
|
|
+ if (msReport1 != null &&msReport1.getWorkMsg() != null &&msReport1.getTodayMsg() != null && !msReport1.getWorkMsg().equals(msReport1.getTodayMsg()) && !compareWhere(msReport1.getWorkMsg(), msReport1.getTodayMsg())) {
|
|
|
+ model.put("collor", "red");
|
|
|
+ model.put("collor2", "red");
|
|
|
+ model.put("into", "不可复工");
|
|
|
+ model.put("errorMsg", "您本人不在工作驻地,不能入场复工。");
|
|
|
+ return new ModelAndView("/user/returnWork.ftl", model);
|
|
|
+ }
|
|
|
MsTripDet work = msReportMapper.returnWork(userId);
|
|
|
if (work != null) {
|
|
|
if (ly2 && outUser2.getStartDate().getTime() < s.parse(work.getReturnWork()).getTime()) {
|
|
@@ -768,14 +776,6 @@ public class ScanController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- MsReport msReport1 = msReportMapper.msAddr(userId);
|
|
|
- if (msReport1 != null &&msReport1.getWorkMsg() != null &&msReport1.getTodayMsg() != null && !msReport1.getWorkMsg().equals(msReport1.getTodayMsg()) && !compareWhere(msReport1.getWorkMsg(), msReport1.getTodayMsg())) {
|
|
|
- model.put("collor", "red");
|
|
|
- model.put("collor2", "red");
|
|
|
- model.put("into", "不可复工");
|
|
|
- model.put("errorMsg", "您本人不在工作驻地,不能入场复工。");
|
|
|
- return new ModelAndView("/user/returnWork.ftl", model);
|
|
|
- }
|
|
|
model.put("collor", "blue-ly");
|
|
|
model.put("collor2", "blue-ly");
|
|
|
model.put("into", "允许复工");
|