|
|
@@ -116,7 +116,6 @@ public class LabSecurityApplyController extends BaseController
|
|
|
labSecurityApplyVO.setDeptId(sysUser.getDeptId());
|
|
|
}else if("11".equals(sysUser.getUserType())){
|
|
|
//教职工登录,实验室负责人为当前用户的数据
|
|
|
- //labSecurityApplyVO.setSubjectAdminid(sysUser.getUserId());
|
|
|
List<Long> ids = new ArrayList<>();
|
|
|
LabSubject labSubject = new LabSubject();
|
|
|
labSubject.setAdminId(sysUser.getUserId());
|
|
|
@@ -130,7 +129,7 @@ public class LabSecurityApplyController extends BaseController
|
|
|
}
|
|
|
labSecurityApplyVO.setSubjectIds(ids);
|
|
|
}else if(UserConstants.USER_TYPE_STUDENT.equals(sysUser.getUserType())){
|
|
|
- //labSecurityApply.setUserId(sysUser.getUserId());// 学生登录(学生无审核权限),申请人id 为当前用户id的数据
|
|
|
+ // 学生登录(学生无审核权限),申请人id 为当前用户id的数据
|
|
|
return getDataTable(new ArrayList());
|
|
|
}
|
|
|
startPage();
|
|
|
@@ -162,15 +161,8 @@ public class LabSecurityApplyController extends BaseController
|
|
|
{
|
|
|
//获取登录用户信息
|
|
|
SysUser sysUser = tokenService.getLoginUser().getSysUser();
|
|
|
- //判断当前登录用户角色
|
|
|
- /*if("00".equals(sysUser.getUserType())){
|
|
|
- labSecurityApplyVO.setDeptId(sysUser.getDeptId());// 系统用户按部门查询
|
|
|
- }else if(UserConstants.USER_TYPE_STUDENT.equals(sysUser.getUserType())){
|
|
|
- // 申请人id 为当前用户id的数据
|
|
|
- }*/
|
|
|
// 只查自己数据
|
|
|
labSecurityApplyVO.setUserId(sysUser.getUserId());
|
|
|
- //labSecurityApplyVO.setRemark("1");//标注查询未通过的审核 0待审核 1驳回 的数据 (2022-04-08 需求突然变更去除校验)
|
|
|
|
|
|
startPage();
|
|
|
List<LabSecurityApplyVO> list = labSecurityApplyService.selectLabSecurityApplyList(labSecurityApplyVO);
|
|
|
@@ -189,11 +181,10 @@ public class LabSecurityApplyController extends BaseController
|
|
|
//获取登录用户信息
|
|
|
SysUser sysUser = tokenService.getLoginUser().getSysUser();
|
|
|
if("00".equals(sysUser.getUserType())){
|
|
|
- labSecurityApplyVO.setDeptId(sysUser.getDeptId());// 系统用户按部门查询
|
|
|
+ // 系统用户按部门查询
|
|
|
+ labSecurityApplyVO.setDeptId(sysUser.getDeptId());
|
|
|
}else if("11".equals(sysUser.getUserType())){
|
|
|
// 教职工登录,实验室负责人为当前用户的数据
|
|
|
- //labSecurityApplyVO.setSubjectAdminid(sysUser.getUserId());
|
|
|
-
|
|
|
List<Long> ids = new ArrayList<>();
|
|
|
LabSubject labSubject = new LabSubject();
|
|
|
labSubject.setAdminId(sysUser.getUserId());
|
|
|
@@ -263,9 +254,7 @@ public class LabSecurityApplyController extends BaseController
|
|
|
@GetMapping(value = "/getDetailsApp")
|
|
|
public ResultData getDetailsApp( Long id)
|
|
|
{
|
|
|
- Map<String, Object> map =new HashMap<>();
|
|
|
- map = getDetailsById(id);
|
|
|
- return ResultData.success(map);
|
|
|
+ return ResultData.success(getDetailsById(id));
|
|
|
}
|
|
|
|
|
|
public Map<String, Object> getDetailsById( Long id){
|
|
|
@@ -319,19 +308,6 @@ public class LabSecurityApplyController extends BaseController
|
|
|
lmr.setApplyId(labSecurityApply.getId());
|
|
|
lmr.setMaterialId(listTemp.get(i).getId());
|
|
|
List<LabSecurityMaterialrelation> list =iLabSecurityMaterialrelationService.selectLabSecurityMaterialrelationList(lmr);
|
|
|
-// for(LabSecurityMaterialrelation materialrelation: list){
|
|
|
-// String splitUrl[]=materialrelation.getDataUrl().split(",");
|
|
|
-// String finalUrl="";
|
|
|
-// for(String sp:splitUrl){
|
|
|
-// String dataUrl[]=sp.split(";");
|
|
|
-// String newUrl=fileConfigUtils.getRemoteUrl().replace("http","https")+"/"+dataUrl[1];
|
|
|
-// newUrl= UrlFormatUtils.getHttpsORHttpUrl(newUrl);
|
|
|
-// String newDataUrl=dataUrl[0]+";"+newUrl;
|
|
|
-// finalUrl+=newDataUrl+",";
|
|
|
-// }
|
|
|
-// finalUrl=finalUrl.substring(0,finalUrl.length()-1);
|
|
|
-// materialrelation.setDataUrl(finalUrl);
|
|
|
-// }
|
|
|
listTemp.get(i).setListMr(list);
|
|
|
}
|
|
|
}
|
|
|
@@ -429,19 +405,6 @@ public class LabSecurityApplyController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //申请时校验是否存在
|
|
|
- /*if(StringUtils.isNotBlank(remark)){
|
|
|
- //校验用户是否已有申请中的数据
|
|
|
- LabSecurityApplyVO labSecurityApplyVo = new LabSecurityApplyVO();
|
|
|
- labSecurityApplyVo.setSubjectId(subjectId);
|
|
|
- labSecurityApplyVo.setUserId(sysUser.getUserId());
|
|
|
- labSecurityApplyVo.setRemark(remark);
|
|
|
- List<LabSecurityApplyVO> listapp= labSecurityApplyService.selectLabSecurityApplyList(labSecurityApplyVo);
|
|
|
- if(listapp!=null && listapp.size()>0){
|
|
|
- throw new ServiceException("已申请该实验室,无需重复申请!");
|
|
|
- }
|
|
|
- }*/
|
|
|
-
|
|
|
List<LabSecurityMaterialDataVO> listTeacher=Collections.emptyList();//教职工
|
|
|
List<LabSecurityMaterialDataVO> listStudent=Collections.emptyList();//学生
|
|
|
List<Map<String, Object>> listcert = Collections.emptyList();//学生考试证数
|
|
|
@@ -581,8 +544,6 @@ public class LabSecurityApplyController extends BaseController
|
|
|
labSecurityApplyVO.setDeptId(sysUser.getDeptId());
|
|
|
}else if("11".equals(sysUser.getUserType())){
|
|
|
//教职工登录,该人员负责的实验室
|
|
|
- //labSecurityApplyVO.setSubjectAdminid(sysUser.getUserId());
|
|
|
-
|
|
|
List<Long> ids = new ArrayList<>();
|
|
|
LabSubject labSubject = new LabSubject();
|
|
|
labSubject.setAdminId(sysUser.getUserId());
|
|
|
@@ -622,7 +583,6 @@ public class LabSecurityApplyController extends BaseController
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
LabSecurityApply labSecurityApply = new LabSecurityApply();
|
|
|
//通过
|
|
|
- //labSecurityApply.setAuditStatus(2);
|
|
|
List<Map<String, Object>> listTg = labSecurityApplyService.selectApplyListSchoolColumn(labSecurityApply);
|
|
|
map.put("listTg",listTg);
|
|
|
return ResultData.success(map);
|
|
|
@@ -637,7 +597,6 @@ public class LabSecurityApplyController extends BaseController
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
LabSecurityApply labSecurityApply = new LabSecurityApply();
|
|
|
//通过
|
|
|
- //labSecurityApply.setAuditStatus(2);
|
|
|
List<Map<String, Object>> listTg = labSecurityApplyService.selectApplyListCollegelColumn(labSecurityApply);
|
|
|
|
|
|
//计算申请总数
|