|
@@ -78,6 +78,9 @@ public class LabSecurityApplyController extends BaseController
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private FileConfigUtils fileConfigUtils;
|
|
private FileConfigUtils fileConfigUtils;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ILabSubjectService labSubjectService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 查询安全准入申请列表
|
|
* 查询安全准入申请列表
|
|
|
*/
|
|
*/
|
|
@@ -94,7 +97,16 @@ public class LabSecurityApplyController extends BaseController
|
|
|
labSecurityApplyVO.setDeptId(sysUser.getDeptId());
|
|
labSecurityApplyVO.setDeptId(sysUser.getDeptId());
|
|
|
}else if("11".equals(sysUser.getUserType())){
|
|
}else if("11".equals(sysUser.getUserType())){
|
|
|
//教职工登录,实验室负责人为当前用户的数据
|
|
//教职工登录,实验室负责人为当前用户的数据
|
|
|
- labSecurityApplyVO.setSubjectAdminid(sysUser.getUserId());
|
|
|
|
|
|
|
+ //labSecurityApplyVO.setSubjectAdminid(sysUser.getUserId());
|
|
|
|
|
+
|
|
|
|
|
+ List<Long> ids = new ArrayList<>();
|
|
|
|
|
+ LabSubject labSubject = new LabSubject();
|
|
|
|
|
+ labSubject.setAdminId(sysUser.getUserId());
|
|
|
|
|
+ List<LabSubject> list = labSubjectService.selectLabSubjectListByadminidNotnull(labSubject);
|
|
|
|
|
+ for (LabSubject sub:list) {
|
|
|
|
|
+ ids.add(sub.getId());
|
|
|
|
|
+ }
|
|
|
|
|
+ labSecurityApplyVO.setSubjectIds(ids);
|
|
|
}else if(UserConstants.USER_TYPE_STUDENT.equals(sysUser.getUserType())){
|
|
}else if(UserConstants.USER_TYPE_STUDENT.equals(sysUser.getUserType())){
|
|
|
//labSecurityApply.setUserId(sysUser.getUserId());// 学生登录(学生无审核权限),申请人id 为当前用户id的数据
|
|
//labSecurityApply.setUserId(sysUser.getUserId());// 学生登录(学生无审核权限),申请人id 为当前用户id的数据
|
|
|
return getDataTable(new ArrayList());
|
|
return getDataTable(new ArrayList());
|
|
@@ -158,9 +170,20 @@ public class LabSecurityApplyController extends BaseController
|
|
|
if("00".equals(sysUser.getUserType())){
|
|
if("00".equals(sysUser.getUserType())){
|
|
|
labSecurityApplyVO.setDeptId(sysUser.getDeptId());// 系统用户按部门查询
|
|
labSecurityApplyVO.setDeptId(sysUser.getDeptId());// 系统用户按部门查询
|
|
|
}else if("11".equals(sysUser.getUserType())){
|
|
}else if("11".equals(sysUser.getUserType())){
|
|
|
- labSecurityApplyVO.setSubjectAdminid(sysUser.getUserId());// 教职工登录,实验室负责人为当前用户的数据
|
|
|
|
|
|
|
+ // 教职工登录,实验室负责人为当前用户的数据
|
|
|
|
|
+ //labSecurityApplyVO.setSubjectAdminid(sysUser.getUserId());
|
|
|
|
|
+
|
|
|
|
|
+ List<Long> ids = new ArrayList<>();
|
|
|
|
|
+ LabSubject labSubject = new LabSubject();
|
|
|
|
|
+ labSubject.setAdminId(sysUser.getUserId());
|
|
|
|
|
+ List<LabSubject> list = labSubjectService.selectLabSubjectListByadminidNotnull(labSubject);
|
|
|
|
|
+ for (LabSubject sub:list) {
|
|
|
|
|
+ ids.add(sub.getId());
|
|
|
|
|
+ }
|
|
|
|
|
+ labSecurityApplyVO.setSubjectIds(ids);
|
|
|
}else if(UserConstants.USER_TYPE_STUDENT.equals(sysUser.getUserType())){
|
|
}else if(UserConstants.USER_TYPE_STUDENT.equals(sysUser.getUserType())){
|
|
|
- //labSecurityApply.setUserId(sysUser.getUserId());// 学生登录(学生无审核权限),申请人id 为当前用户id的数据
|
|
|
|
|
|
|
+ // 学生登录(学生无审核权限),申请人id 为当前用户id的数据
|
|
|
|
|
+ labSecurityApplyVO.setUserId(sysUser.getUserId());
|
|
|
}
|
|
}
|
|
|
List<LabSecurityApplyVO> list = labSecurityApplyService.selectLabSecurityApplyList(labSecurityApplyVO);
|
|
List<LabSecurityApplyVO> list = labSecurityApplyService.selectLabSecurityApplyList(labSecurityApplyVO);
|
|
|
List<LabSecurityApplyExcelVO> excelList = new ArrayList<>();
|
|
List<LabSecurityApplyExcelVO> excelList = new ArrayList<>();
|
|
@@ -552,8 +575,17 @@ public class LabSecurityApplyController extends BaseController
|
|
|
//系统用户登录
|
|
//系统用户登录
|
|
|
labSecurityApplyVO.setDeptId(sysUser.getDeptId());
|
|
labSecurityApplyVO.setDeptId(sysUser.getDeptId());
|
|
|
}else if("11".equals(sysUser.getUserType())){
|
|
}else if("11".equals(sysUser.getUserType())){
|
|
|
- //教职工登录
|
|
|
|
|
- labSecurityApplyVO.setSubjectAdminid(sysUser.getUserId());
|
|
|
|
|
|
|
+ //教职工登录,该人员负责的实验室
|
|
|
|
|
+ //labSecurityApplyVO.setSubjectAdminid(sysUser.getUserId());
|
|
|
|
|
+
|
|
|
|
|
+ List<Long> ids = new ArrayList<>();
|
|
|
|
|
+ LabSubject labSubject = new LabSubject();
|
|
|
|
|
+ labSubject.setAdminId(sysUser.getUserId());
|
|
|
|
|
+ List<LabSubject> list = labSubjectService.selectLabSubjectListByadminidNotnull(labSubject);
|
|
|
|
|
+ for (LabSubject sub:list) {
|
|
|
|
|
+ ids.add(sub.getId());
|
|
|
|
|
+ }
|
|
|
|
|
+ labSecurityApplyVO.setSubjectIds(ids);
|
|
|
}else if(UserConstants.USER_TYPE_STUDENT.equals(sysUser.getUserType())){
|
|
}else if(UserConstants.USER_TYPE_STUDENT.equals(sysUser.getUserType())){
|
|
|
//学生登录
|
|
//学生登录
|
|
|
labSecurityApplyVO.setUserId(sysUser.getUserId());
|
|
labSecurityApplyVO.setUserId(sysUser.getUserId());
|