|
@@ -1,12 +1,15 @@
|
|
package com.diagbot.facade;
|
|
package com.diagbot.facade;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
import com.diagbot.dto.CheckDeptDTO;
|
|
import com.diagbot.dto.CheckDeptDTO;
|
|
|
|
+import com.diagbot.dto.CheckJobDTO;
|
|
import com.diagbot.dto.DeptCheckUserDTO;
|
|
import com.diagbot.dto.DeptCheckUserDTO;
|
|
import com.diagbot.entity.BasDeptInfo;
|
|
import com.diagbot.entity.BasDeptInfo;
|
|
import com.diagbot.entity.BasDoctorInfo;
|
|
import com.diagbot.entity.BasDoctorInfo;
|
|
import com.diagbot.entity.MedCheckInfo;
|
|
import com.diagbot.entity.MedCheckInfo;
|
|
|
|
+import com.diagbot.entity.QcresultInfo;
|
|
import com.diagbot.entity.SysRole;
|
|
import com.diagbot.entity.SysRole;
|
|
import com.diagbot.entity.SysUser;
|
|
import com.diagbot.entity.SysUser;
|
|
import com.diagbot.entity.SysUserDept;
|
|
import com.diagbot.entity.SysUserDept;
|
|
@@ -18,7 +21,9 @@ import com.diagbot.service.impl.MedCheckInfoServiceImpl;
|
|
import com.diagbot.util.DateUtil;
|
|
import com.diagbot.util.DateUtil;
|
|
import com.diagbot.util.StringUtil;
|
|
import com.diagbot.util.StringUtil;
|
|
import com.diagbot.util.SysUserUtils;
|
|
import com.diagbot.util.SysUserUtils;
|
|
|
|
+import com.diagbot.vo.CheckJobVO;
|
|
import com.diagbot.vo.CheckUserVO;
|
|
import com.diagbot.vo.CheckUserVO;
|
|
|
|
+import com.diagbot.vo.DistributionJobVO;
|
|
import com.diagbot.vo.MedCheckInfoAddVO;
|
|
import com.diagbot.vo.MedCheckInfoAddVO;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
@@ -26,8 +31,10 @@ import org.springframework.stereotype.Component;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
|
+import java.util.HashSet;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
+import java.util.Set;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -131,6 +138,86 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
}
|
|
}
|
|
return res;
|
|
return res;
|
|
}
|
|
}
|
|
|
|
+ /**
|
|
|
|
+ * @Author songxl
|
|
|
|
+ * @Description 获取操作用户的核查科室以及人员
|
|
|
|
+ * @Date 2021/5/14
|
|
|
|
+ * @Param []
|
|
|
|
+ * @Return java.util.Map<java.lang.String,java.util.List<com.diagbot.dto.CheckDeptDTO>>
|
|
|
|
+ * @MethodName getCheckUserMap
|
|
|
|
+ */
|
|
|
|
+ public List<CheckJobDTO> getUserCheckList(CheckJobVO checkJobVO) {
|
|
|
|
+ //非空校验
|
|
|
|
+ if(StringUtil.isBlank(checkJobVO.getStartTime())&&StringUtil.isBlank(checkJobVO.getEndTime())
|
|
|
|
+ &&StringUtil.isBlank(checkJobVO.getBehosDateStart())&&StringUtil.isBlank(checkJobVO.getBehosDateEnd()))
|
|
|
|
+ {
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "没有时间区间!");
|
|
|
|
+ }
|
|
|
|
+ if(checkJobVO.getDeptList()==null||checkJobVO.getDeptList().isEmpty())
|
|
|
|
+ {
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "没有传科室列表!");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //质控管理员要判断该角色是否是质控科
|
|
|
|
+ //1.获取质控科id
|
|
|
|
+ //获取人员id 和 该人员的医院id
|
|
|
|
+ Long hospitalId = Long.valueOf(SysUserUtils.getCurrentHospitalID());
|
|
|
|
+ Long principleId = Long.valueOf(SysUserUtils.getCurrentPrincipleID());
|
|
|
|
+ //获取核查监管相关角色id
|
|
|
|
+ List<Long> checkRoleIds = sysRoleFacade.list(new QueryWrapper<SysRole>()
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .like("name","监管人员")
|
|
|
|
+ ).stream().map(SysRole::getId).collect(Collectors.toList());
|
|
|
|
+ //查询该角色的所有角色id
|
|
|
|
+ List<Long> roleIds = sysUserRoleFacade.list(new QueryWrapper<SysUserRole>()
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("user_id", principleId)
|
|
|
|
+ .in("role_id",checkRoleIds)
|
|
|
|
+ ).stream().distinct().map(SysUserRole::getRoleId).collect(Collectors.toList());
|
|
|
|
+ List<Long> searchRoleIds = new ArrayList<>();
|
|
|
|
+ //当前用户是监管人员或者是超级管理员
|
|
|
|
+ if(roleIds.contains(-1))
|
|
|
|
+ {
|
|
|
|
+ searchRoleIds.addAll(checkRoleIds);
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ searchRoleIds.addAll(containsRole(checkRoleIds,roleIds));
|
|
|
|
+ }
|
|
|
|
+ if(searchRoleIds.isEmpty())
|
|
|
|
+ {
|
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该用户不是核查监管人员!");
|
|
|
|
+ }
|
|
|
|
+ //质控科监管人员
|
|
|
|
+ if(searchRoleIds.contains(5L)&&"2".equals(checkJobVO.getCheckType()))
|
|
|
|
+ {
|
|
|
|
+ String zkkDeptId = basDeptInfoFacade.getOne(new QueryWrapper<BasDeptInfo>()
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("hospital_id",hospitalId)
|
|
|
|
+ .like("dept_name","质管科")).getDeptId();
|
|
|
|
+ if(StringUtil.isBlank(zkkDeptId))
|
|
|
|
+ {
|
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "科室质管科不存在!");
|
|
|
|
+ }
|
|
|
|
+ //2.获取监管人员所在科室集合
|
|
|
|
+ List<String> deptIds = sysUserDeptFacade.list(new QueryWrapper<SysUserDept>()
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("hospital_id",hospitalId)
|
|
|
|
+ .eq("user_id",principleId)
|
|
|
|
+ ).stream().map(SysUserDept::getDeptId).collect(Collectors.toList());
|
|
|
|
+ //3.判断这个人是否在质控科
|
|
|
|
+ if(deptIds.contains(zkkDeptId))
|
|
|
|
+ {
|
|
|
|
+ return baseMapper.getCheckList(checkJobVO);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //临床科室监管人员、院级监管人员
|
|
|
|
+ else if(searchRoleIds.contains(4L)&&"0".equals(checkJobVO.getCheckType())||
|
|
|
|
+ searchRoleIds.contains(6L)&&"1".equals(checkJobVO.getCheckType()))
|
|
|
|
+ {
|
|
|
|
+ return baseMapper.getCheckList(checkJobVO);
|
|
|
|
+ }
|
|
|
|
+ return new ArrayList<>();
|
|
|
|
+ }
|
|
/**
|
|
/**
|
|
* @Author songxl
|
|
* @Author songxl
|
|
* @Description 获取操作用户的核查科室以及人员
|
|
* @Description 获取操作用户的核查科室以及人员
|
|
@@ -154,7 +241,7 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
List<Long> roleIds = sysUserRoleFacade.list(new QueryWrapper<SysUserRole>()
|
|
List<Long> roleIds = sysUserRoleFacade.list(new QueryWrapper<SysUserRole>()
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("user_id", principleId)
|
|
.eq("user_id", principleId)
|
|
-// .in("role_id",checkRoleIds)
|
|
|
|
|
|
+ .in("role_id",checkRoleIds)
|
|
).stream().distinct().map(SysUserRole::getRoleId).collect(Collectors.toList());
|
|
).stream().distinct().map(SysUserRole::getRoleId).collect(Collectors.toList());
|
|
List<Long> searchRoleIds = new ArrayList<>();
|
|
List<Long> searchRoleIds = new ArrayList<>();
|
|
//当前用户是监管人员或者是超级管理员
|
|
//当前用户是监管人员或者是超级管理员
|
|
@@ -186,25 +273,30 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
Map<String, List<CheckDeptDTO>> checkRoleMap = new HashMap<>();
|
|
Map<String, List<CheckDeptDTO>> checkRoleMap = new HashMap<>();
|
|
for(Long id:searchRoleIds)
|
|
for(Long id:searchRoleIds)
|
|
{
|
|
{
|
|
- //不同角色不同查询方式
|
|
|
|
- switch (id.intValue())
|
|
|
|
|
|
+ try
|
|
{
|
|
{
|
|
- //临床科室监管人员
|
|
|
|
- case 4:
|
|
|
|
- getDeptCheckInfo(checkRoleMap,hospitalId,principleId);
|
|
|
|
- break;
|
|
|
|
- //质控科监管人员
|
|
|
|
- case 5:
|
|
|
|
- getZKKCheckInfo(checkRoleMap,hospitalId,principleId);
|
|
|
|
- break;
|
|
|
|
- //院级监管人员
|
|
|
|
- case 6:
|
|
|
|
- getYQCheckInfo(checkRoleMap,hospitalId,principleId);
|
|
|
|
- break;
|
|
|
|
- default:
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ //不同角色不同查询方式
|
|
|
|
+ switch (id.intValue())
|
|
|
|
+ {
|
|
|
|
+ //临床科室监管人员
|
|
|
|
+ case 4:
|
|
|
|
+ getDeptCheckInfo(checkRoleMap,hospitalId,principleId);
|
|
|
|
+ break;
|
|
|
|
+ //质控科监管人员
|
|
|
|
+ case 5:
|
|
|
|
+ getZKKCheckInfo(checkRoleMap,hospitalId,principleId);
|
|
|
|
+ break;
|
|
|
|
+ //院级监管人员
|
|
|
|
+ case 6:
|
|
|
|
+ getYQCheckInfo(checkRoleMap,hospitalId,principleId);
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ catch (Exception e)
|
|
|
|
+ {
|
|
|
|
+ e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return checkRoleMap;
|
|
return checkRoleMap;
|
|
@@ -221,12 +313,14 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("role_id",roleId)
|
|
.eq("role_id",roleId)
|
|
).stream().map(SysUserRole::getUserId).collect(Collectors.toList());
|
|
).stream().map(SysUserRole::getUserId).collect(Collectors.toList());
|
|
|
|
+ if(userIds.isEmpty()){return;}
|
|
//1.3获取该用户id集合的科室id集合
|
|
//1.3获取该用户id集合的科室id集合
|
|
List<String> deptIds = sysUserDeptFacade.list(new QueryWrapper<SysUserDept>()
|
|
List<String> deptIds = sysUserDeptFacade.list(new QueryWrapper<SysUserDept>()
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id",hospitalId)
|
|
.eq("hospital_id",hospitalId)
|
|
.in("user_id",userIds)
|
|
.in("user_id",userIds)
|
|
).stream().map(SysUserDept::getDeptId).collect(Collectors.toList());
|
|
).stream().map(SysUserDept::getDeptId).collect(Collectors.toList());
|
|
|
|
+ if(deptIds.isEmpty()){return;}
|
|
//2.1获取质控人员的科室信息
|
|
//2.1获取质控人员的科室信息
|
|
List<BasDeptInfo> deptInfos = basDeptInfoFacade.list(new QueryWrapper<BasDeptInfo>()
|
|
List<BasDeptInfo> deptInfos = basDeptInfoFacade.list(new QueryWrapper<BasDeptInfo>()
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
@@ -243,7 +337,7 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
checkUserVO.setJobType(1);
|
|
checkUserVO.setJobType(1);
|
|
checkUserVO.setUserList(doctorIds);
|
|
checkUserVO.setUserList(doctorIds);
|
|
//通过核查人员id获取核查人员的核查任务数
|
|
//通过核查人员id获取核查人员的核查任务数
|
|
- List<DeptCheckUserDTO> userJobs = this.getJobNumByUserId(checkUserVO);
|
|
|
|
|
|
+ List<DeptCheckUserDTO> userJobs = baseMapper.getJobNumByUserId(checkUserVO);
|
|
addCheckInfoMap(checkRoleMap,doctorInfos,userJobs,deptInfos,6);
|
|
addCheckInfoMap(checkRoleMap,doctorInfos,userJobs,deptInfos,6);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -280,7 +374,7 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
checkUserVO.setJobType(2);
|
|
checkUserVO.setJobType(2);
|
|
checkUserVO.setUserList(doctorIds);
|
|
checkUserVO.setUserList(doctorIds);
|
|
//通过核查人员id获取核查人员的核查任务数
|
|
//通过核查人员id获取核查人员的核查任务数
|
|
- List<DeptCheckUserDTO> userJobs = this.getJobNumByUserId(checkUserVO);
|
|
|
|
|
|
+ List<DeptCheckUserDTO> userJobs = baseMapper.getJobNumByUserId(checkUserVO);
|
|
addCheckInfoMap(checkRoleMap,doctorInfos,userJobs,deptInfos,5);
|
|
addCheckInfoMap(checkRoleMap,doctorInfos,userJobs,deptInfos,5);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -293,6 +387,7 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
.eq("hospital_id",hospitalId)
|
|
.eq("hospital_id",hospitalId)
|
|
.eq("user_id",principleId)
|
|
.eq("user_id",principleId)
|
|
).stream().map(SysUserDept::getDeptId).collect(Collectors.toList());
|
|
).stream().map(SysUserDept::getDeptId).collect(Collectors.toList());
|
|
|
|
+ if(deptIds.isEmpty()){return;}
|
|
//2.1获取科室详情
|
|
//2.1获取科室详情
|
|
List<BasDeptInfo> deptInfos = basDeptInfoFacade.list(new QueryWrapper<BasDeptInfo>()
|
|
List<BasDeptInfo> deptInfos = basDeptInfoFacade.list(new QueryWrapper<BasDeptInfo>()
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
@@ -309,7 +404,7 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
checkUserVO.setJobType(0);
|
|
checkUserVO.setJobType(0);
|
|
checkUserVO.setUserList(doctorIds);
|
|
checkUserVO.setUserList(doctorIds);
|
|
//通过核查人员id获取核查人员的核查任务数
|
|
//通过核查人员id获取核查人员的核查任务数
|
|
- List<DeptCheckUserDTO> userJobs = this.getJobNumByUserId(checkUserVO);
|
|
|
|
|
|
+ List<DeptCheckUserDTO> userJobs = baseMapper.getJobNumByUserId(checkUserVO);
|
|
addCheckInfoMap(checkRoleMap,doctorInfos,userJobs,deptInfos,4);
|
|
addCheckInfoMap(checkRoleMap,doctorInfos,userJobs,deptInfos,4);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -381,4 +476,118 @@ public class MedCheckInfoFacade extends MedCheckInfoServiceImpl {
|
|
}
|
|
}
|
|
return searchRoleIds;
|
|
return searchRoleIds;
|
|
}
|
|
}
|
|
|
|
+ /**
|
|
|
|
+ * @Author songxl
|
|
|
|
+ * @Description 分配/取消核查任务
|
|
|
|
+ * @Date 2021/5/17
|
|
|
|
+ * @Param [distributionJobVO]
|
|
|
|
+ * @Return boolean
|
|
|
|
+ * @MethodName distributionJobs
|
|
|
|
+ */
|
|
|
|
+ public boolean distributionJobs(DistributionJobVO distributionJobVO) {
|
|
|
|
+
|
|
|
|
+ //1非空校验
|
|
|
|
+ if(StringUtil.isBlank(distributionJobVO.getCheckId())||
|
|
|
|
+ StringUtil.isBlank(distributionJobVO.getCheckName())||
|
|
|
|
+ StringUtil.isBlank(distributionJobVO.getDistributionType())||
|
|
|
|
+ distributionJobVO.getBehospitalCodes()==null||
|
|
|
|
+ distributionJobVO.getBehospitalCodes().isEmpty())
|
|
|
|
+ {
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL,"入参为空");
|
|
|
|
+ }
|
|
|
|
+ //获取人员id 和 该人员的医院id
|
|
|
|
+ Long hospitalId = Long.valueOf(SysUserUtils.getCurrentHospitalID());
|
|
|
|
+ Long principleId = Long.valueOf(SysUserUtils.getCurrentPrincipleID());
|
|
|
|
+ //2.获取任务类型 0分配 1取消
|
|
|
|
+ String distributionType = distributionJobVO.getDistributionType();
|
|
|
|
+ //3 分配
|
|
|
|
+ if(StringUtil.isNotBlank(distributionType)&&"0".equals(distributionType))
|
|
|
|
+ {
|
|
|
|
+ //3.1 任务未分配校验
|
|
|
|
+ List<String> distributionNames = this.list(new QueryWrapper<MedCheckInfo>()
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("hospital_id",hospitalId)
|
|
|
|
+ .in("behospital_code",distributionJobVO.getBehospitalCodes())
|
|
|
|
+ ).stream().filter(s-> s.getJobDistributionName() !=null).map(MedCheckInfo::getJobDistributionName)
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ if(distributionNames!=null&&distributionNames.size()>0)
|
|
|
|
+ {
|
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "待分配任务列表存在已分配任务!");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //获取分配用户信息
|
|
|
|
+ QueryWrapper<SysUser> userQuer = new QueryWrapper<>();
|
|
|
|
+ userQuer.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("id",principleId)
|
|
|
|
+ .eq("status",1);
|
|
|
|
+ SysUser user = sysUserFacade.getOne(userQuer);
|
|
|
|
+ String principleName = user.getLinkman();
|
|
|
|
+ Date now = DateUtil.now();
|
|
|
|
+ //3.2分配核查任务
|
|
|
|
+ return this.update(new UpdateWrapper<MedCheckInfo>()
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("hospital_id", hospitalId)
|
|
|
|
+ .in("behospital_code", distributionJobVO.getBehospitalCodes())
|
|
|
|
+ .set("job_distributor", principleId)
|
|
|
|
+ .set("job_distribution_name", principleName)
|
|
|
|
+ .set("check_id", distributionJobVO.getCheckId())
|
|
|
|
+ .set("check_name", distributionJobVO.getCheckName())
|
|
|
|
+ .set("job_distribution_time", now));
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ //4 取消分配
|
|
|
|
+ else if(StringUtil.isNotBlank(distributionType)&&"1".equals(distributionType))
|
|
|
|
+ {
|
|
|
|
+ //4.1 任务已取消校验
|
|
|
|
+ Set<Long> checkIds = this.list(new QueryWrapper<MedCheckInfo>()
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("hospital_id",hospitalId)
|
|
|
|
+ .in("behospital_code",distributionJobVO.getBehospitalCodes())
|
|
|
|
+ ).stream().map(MedCheckInfo::getCheckId).collect(Collectors.toSet());
|
|
|
|
+ //4.2获取出来的核查用户存在但不是一个
|
|
|
|
+ if(checkIds==null||checkIds.isEmpty()||
|
|
|
|
+ (checkIds.size()!=1&&checkIds.contains(distributionJobVO.getCheckId())))
|
|
|
|
+ {
|
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "待取消分配任务列表不存在或存在不是该用户的任务!");
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ Date now = DateUtil.now();
|
|
|
|
+ //4.3取消分配
|
|
|
|
+ return this.update(new UpdateWrapper<MedCheckInfo>()
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("hospital_id", hospitalId)
|
|
|
|
+ .eq("check_id", distributionJobVO.getCheckId())
|
|
|
|
+ .in("behospital_code", distributionJobVO.getBehospitalCodes())
|
|
|
|
+ .set("job_distributor",-1)
|
|
|
|
+ .set("job_distribution_name", null)
|
|
|
|
+ .set("check_id", -1)
|
|
|
|
+ .set("check_name", "")
|
|
|
|
+ .set("job_distribution_time", now));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
|
|
+ * @Author songxl
|
|
|
|
+ * @Description 获取指定核查人员的核查任务
|
|
|
|
+ * @Date 2021/5/17
|
|
|
|
+ * @Param [checkJobVO]
|
|
|
|
+ * @Return java.util.List<com.diagbot.dto.CheckJobDTO>
|
|
|
|
+ * @MethodName getCheckListByUserId
|
|
|
|
+ */
|
|
|
|
+ public List<CheckJobDTO> getCheckListByUserId(CheckJobVO checkJobVO) {
|
|
|
|
+ //非空校验
|
|
|
|
+ if(StringUtil.isBlank(checkJobVO.getStartTime())&&StringUtil.isBlank(checkJobVO.getEndTime())
|
|
|
|
+ &&StringUtil.isBlank(checkJobVO.getBehosDateStart())&&StringUtil.isBlank(checkJobVO.getBehosDateEnd()))
|
|
|
|
+ {
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "没有时间区间!");
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isBlank(checkJobVO.getCheckId()))
|
|
|
|
+ {
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "没有传核查用户id!");
|
|
|
|
+ }
|
|
|
|
+ return baseMapper.getCheckListByUserId(checkJobVO);
|
|
|
|
+ }
|
|
}
|
|
}
|