|
@@ -210,8 +210,8 @@ public class ScanController {
|
|
|
// return new ModelAndView("/user/scan.ftl", model);
|
|
|
// }
|
|
|
}
|
|
|
- Integer isContact = msReportMapper.queryMsReportIsXGHome(userOpen.getUserId());
|
|
|
- if (isContact != null && isContact == 1) {
|
|
|
+ List<MsReport> msReportList = msReportMapper.queryMsReportIsXGHome(userOpen.getUserId());
|
|
|
+ if (msReportList.size() > 0) {
|
|
|
model.put("collor", "red");
|
|
|
model.put("collor2", "red");
|
|
|
model.put("into", "不许进入");
|
|
@@ -616,8 +616,8 @@ public class ScanController {
|
|
|
// return new ModelAndView("/user/returnWork.ftl", model);
|
|
|
// }
|
|
|
}
|
|
|
- Integer isContact = msReportMapper.queryMsReportIsXGHome(userId);
|
|
|
- if (isContact != null && isContact == 1) {
|
|
|
+ List<MsReport> msReportList = msReportMapper.queryMsReportIsXGHome(userId);
|
|
|
+ if (msReportList.size() > 0) {
|
|
|
model.put("collor", "red");
|
|
|
model.put("collor2", "red");
|
|
|
model.put("into", "不可复工");
|