|
@@ -72,14 +72,18 @@ public class RecordCheckFacade {
|
|
|
} else if (roleId.intValue() == CheckerRoleEnum.QUAT_SUPERVISOR.getKey()
|
|
|
&& (ListUtil.isEmpty(checkedRecordListVO.getCheckJobTypes()) || checkedRecordListVO.getCheckJobTypes().contains(CheckJobTypeEnum.QUAT_SUPERVISOR.getKey() + ""))) {
|
|
|
userIds.addAll(getUserIdsOfRoleId(hospitalId, deptIds, CheckerRoleEnum.QUAT_GENERAL.getKey()));
|
|
|
- } else if (roleId.intValue() == CheckerRoleEnum.DEPT_SUPERVISOR.getKey()
|
|
|
+ } else if (roleId.intValue() == CheckerRoleEnum.DEPT_SUPERVISOR.getKey() && ListUtil.isNotEmpty(deptIds)
|
|
|
&& (ListUtil.isEmpty(checkedRecordListVO.getCheckJobTypes()) || checkedRecordListVO.getCheckJobTypes().contains(CheckJobTypeEnum.DEPT_SUPERVISOR.getKey() + ""))) {
|
|
|
userIds.addAll(getUserIdsOfRoleId(hospitalId, deptIds, CheckerRoleEnum.DEPT_GENERAL.getKey()));
|
|
|
- } else if (roleId.intValue() == CheckerRoleEnum.DEPT_GENERAL.getKey() || roleId.intValue() == CheckerRoleEnum.QUAT_GENERAL.getKey() || roleId.intValue() == CheckerRoleEnum.HOSP_GENERAL.getKey()) {
|
|
|
+ } else if ((roleId.intValue() == CheckerRoleEnum.DEPT_GENERAL.getKey() && ListUtil.isNotEmpty(deptIds))
|
|
|
+ || roleId.intValue() == CheckerRoleEnum.QUAT_GENERAL.getKey() || roleId.intValue() == CheckerRoleEnum.HOSP_GENERAL.getKey()) {
|
|
|
userIds.add(userId);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ if (ListUtil.isEmpty(userIds)) {
|
|
|
+ userIds.add(999999999999999999l);
|
|
|
+ }
|
|
|
checkedRecordListVO.setCurrentDeptIds(String.join(",", deptIds));
|
|
|
checkedRecordListVO.setCurrentGeneralUserIds(userIds);
|
|
|
checkedRecordListVO.setHospitalId(hospitalId);
|