|
@@ -857,12 +857,12 @@ public class LabSecurityApplyController extends BaseController
|
|
|
String userType = String.valueOf(map.get("userType"));
|
|
String userType = String.valueOf(map.get("userType"));
|
|
|
String isWhite = String.valueOf(map.get("isWhite"));
|
|
String isWhite = String.valueOf(map.get("isWhite"));
|
|
|
//如果是学生 或者白名单的老师 进二类页面
|
|
//如果是学生 或者白名单的老师 进二类页面
|
|
|
- if (userType.equals("22") || (userType.equals("11") && isWhite.equals("0"))) {
|
|
|
|
|
|
|
+ if ((StringUtils.isNotNull(userType) && userType.equals("22")) || (StringUtils.isNotNull(userType) && userType.equals("11") && isWhite.equals("0"))) {
|
|
|
map.put("pageType", 2);
|
|
map.put("pageType", 2);
|
|
|
}
|
|
}
|
|
|
int number = iLabSubjectService.isAdminOrSafeUser(labId, userId);
|
|
int number = iLabSubjectService.isAdminOrSafeUser(labId, userId);
|
|
|
//一类首页对应身份为白名单老师、实验室负责人、安全责任人
|
|
//一类首页对应身份为白名单老师、实验室负责人、安全责任人
|
|
|
- if (number > 0 || (userType.equals("11") && isWhite.equals("1"))) {
|
|
|
|
|
|
|
+ if (number > 0 || (StringUtils.isNotNull(userType) && userType.equals("11") && isWhite.equals("1"))) {
|
|
|
map.put("pageType", 1);
|
|
map.put("pageType", 1);
|
|
|
}
|
|
}
|
|
|
String dateTime = DateUtils.getDate();
|
|
String dateTime = DateUtils.getDate();
|
|
@@ -900,12 +900,12 @@ public class LabSecurityApplyController extends BaseController
|
|
|
Long userId=Long.parseLong(String.valueOf(map.get("userId")));
|
|
Long userId=Long.parseLong(String.valueOf(map.get("userId")));
|
|
|
String isWhite=String.valueOf(map.get("isWhite"));
|
|
String isWhite=String.valueOf(map.get("isWhite"));
|
|
|
//如果是学生 或者白名单的老师 进二类页面
|
|
//如果是学生 或者白名单的老师 进二类页面
|
|
|
- if(userType.equals("22") || (userType.equals("11") && isWhite.equals("0"))){
|
|
|
|
|
|
|
+ if((StringUtils.isNotNull(userType) && userType.equals("22")) || (StringUtils.isNotNull(userType) && userType.equals("11") && isWhite.equals("0"))){
|
|
|
map.put("pageType",2);
|
|
map.put("pageType",2);
|
|
|
}
|
|
}
|
|
|
int num=iLabSubjectService.isAdminOrSafeUser(labId,userId);
|
|
int num=iLabSubjectService.isAdminOrSafeUser(labId,userId);
|
|
|
//一类首页对应身份为白名单老师、实验室负责人、安全责任人
|
|
//一类首页对应身份为白名单老师、实验室负责人、安全责任人
|
|
|
- if(num>0 || (userType.equals("11") && isWhite.equals("1"))){
|
|
|
|
|
|
|
+ if(num>0 || (StringUtils.isNotNull(userType) && userType.equals("11") && isWhite.equals("1"))){
|
|
|
map.put("pageType",1);
|
|
map.put("pageType",1);
|
|
|
}
|
|
}
|
|
|
String dateTime = DateUtils.getDate();
|
|
String dateTime = DateUtils.getDate();
|