|
@@ -231,6 +231,7 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
|
|
|
|
if(deptIds!=null&&!deptIds.isEmpty()){
|
|
|
checkJobVO.setDeptList(deptIds);
|
|
|
+ return getCheckList(checkJobVO);
|
|
|
}
|
|
|
}
|
|
|
//院区获取
|
|
@@ -254,15 +255,16 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
|
// hospGeneralDeptIds.removeAll(deptIds);
|
|
|
// checkJobVO.setDeptList(new ArrayList<>(hospGeneralDeptIds));
|
|
|
// }
|
|
|
+ return getCheckList(checkJobVO);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return getCheckList(checkJobVO);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该用户的角色和任务类型不对应!");
|
|
|
}
|
|
|
+ return new CheckJobPageVO();
|
|
|
}
|
|
|
/**
|
|
|
* @Author songxl
|
|
@@ -771,18 +773,18 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
|
* @Return java.util.List<com.diagbot.dto.CheckJobDTO>
|
|
|
* @MethodName getCheckListByUserId
|
|
|
*/
|
|
|
- public List<CheckJobDTO> getCheckListByUserId(CheckJobVO checkJobVO) {
|
|
|
+ public IPage<CheckJobDTO> getCheckListByUserId(CheckJobPageVO checkJobVO) {
|
|
|
//非空校验
|
|
|
if(StringUtil.isBlank(checkJobVO.getCheckId()))
|
|
|
{
|
|
|
throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "没有传核查用户id!");
|
|
|
}
|
|
|
- List<CheckJobDTO> checkJobDTOS= baseMapper.getCheckListByUserId(checkJobVO);
|
|
|
+ IPage<CheckJobDTO> checkJobDTOS= baseMapper.getCheckListByUserId(checkJobVO);
|
|
|
//获取当前登录人员
|
|
|
Long principleId = Long.valueOf(SysUserUtils.getCurrentPrincipleID());
|
|
|
List<CheckJobDTO> outCheckJobDTOS = new ArrayList<>();
|
|
|
//判断分配人员是否是当前人员
|
|
|
- for(CheckJobDTO checkJobDTO:checkJobDTOS)
|
|
|
+ for(CheckJobDTO checkJobDTO:checkJobDTOS.getRecords())
|
|
|
{
|
|
|
if (principleId.equals(checkJobDTO.getJobDistributor()))
|
|
|
{
|
|
@@ -793,6 +795,7 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
|
}
|
|
|
outCheckJobDTOS.add(checkJobDTO);
|
|
|
}
|
|
|
- return outCheckJobDTOS;
|
|
|
+ checkJobDTOS.setRecords(outCheckJobDTOS);
|
|
|
+ return checkJobDTOS;
|
|
|
}
|
|
|
}
|