|
@@ -218,7 +218,7 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
|
else if (searchRoleIds.contains(CheckerRoleEnum.DEPT_SUPERVISOR.getKey() * 1l)
|
|
|
|| searchRoleIds.contains(CheckerRoleEnum.HOSP_SUPERVISOR.getKey() * 1l)) {
|
|
|
//查询没有指定科室
|
|
|
- if (checkJobVO.getDeptList() == null || checkJobVO.getDeptList().isEmpty()) {
|
|
|
+ if (checkJobVO.getDepts() == null || checkJobVO.getDepts().isEmpty()) {
|
|
|
//科室获取待分配任务所在科室集合
|
|
|
if (CheckJobTypeEnum.DEPT_SUPERVISOR.getKey() == Integer.parseInt(checkJobVO.getJobType())) {
|
|
|
//获取当前用户科室
|
|
@@ -228,32 +228,33 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
|
.eq("user_id", principleId)
|
|
|
).stream().map(SysUserDept::getDeptId).collect(Collectors.toList());
|
|
|
if (ListUtil.isNotEmpty(deptIds)) {
|
|
|
- checkJobVO.setDeptList(deptIds);
|
|
|
+ checkJobVO.setDepts(deptIds);
|
|
|
}
|
|
|
//获取病区集合
|
|
|
- List<String> wards = regionDeptService.list(new QueryWrapper<RegionDept>()
|
|
|
- .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
- .eq("hospital_id", hospitalId)
|
|
|
- .in(ListUtil.isNotEmpty(deptIds), "dept_id", deptIds)
|
|
|
- ).stream().map(RegionDept::getRegionCode).collect(Collectors.toList());
|
|
|
- if (ListUtil.isNotEmpty(wards)) {
|
|
|
- checkJobVO.setWardList(wards);
|
|
|
- }
|
|
|
+// List<String> wards = regionDeptService.list(new QueryWrapper<RegionDept>()
|
|
|
+// .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+// .eq("hospital_id", hospitalId)
|
|
|
+// .in(ListUtil.isNotEmpty(deptIds), "dept_id", deptIds)
|
|
|
+// ).stream().map(RegionDept::getRegionCode).collect(Collectors.toList());
|
|
|
+// if (ListUtil.isNotEmpty(wards)) {
|
|
|
+// checkJobVO.setRecords(wards);
|
|
|
+// }
|
|
|
|
|
|
- //医疗组
|
|
|
- List<String> doctorIds = sysUserFacade.list(new QueryWrapper<SysUser>()
|
|
|
- .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
- .eq("id", principleId)
|
|
|
- ).stream().map(SysUser::getUsername).collect(Collectors.toList());
|
|
|
- if (ListUtil.isNotEmpty(doctorIds)) {
|
|
|
- List<String> medoups = medoupUserService.list(new QueryWrapper<BasDoctorInfo>()
|
|
|
- .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
- .in("doctor_id", doctorIds)
|
|
|
- ).stream().map(BasDoctorInfo::getGroupId).collect(Collectors.toList());
|
|
|
- if (ListUtil.isNotEmpty(medoups)) {
|
|
|
- checkJobVO.setMedoupList(medoups);
|
|
|
- }
|
|
|
- }
|
|
|
+ //医疗组(没给医疗组条件默认全部)
|
|
|
+
|
|
|
+// List<String> doctorIds = sysUserFacade.list(new QueryWrapper<SysUser>()
|
|
|
+// .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+// .eq("id", principleId)
|
|
|
+// ).stream().map(SysUser::getUsername).collect(Collectors.toList());
|
|
|
+// if (ListUtil.isNotEmpty(doctorIds)) {
|
|
|
+// List<String> medoups = medoupUserService.list(new QueryWrapper<BasDoctorInfo>()
|
|
|
+// .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+// .in("doctor_id", doctorIds)
|
|
|
+// ).stream().map(BasDoctorInfo::getGroupId).collect(Collectors.toList());
|
|
|
+// if (ListUtil.isNotEmpty(medoups)) {
|
|
|
+// checkJobVO.setMedoups(medoups);
|
|
|
+// }
|
|
|
+// }
|
|
|
return getCheckList(checkJobVO);
|
|
|
}
|
|
|
//院区获取
|