|
@@ -207,17 +207,23 @@ public class BizClinicServiceImpl extends ServiceImpl<BizClinicRepository,BizCli
|
|
|
public BizPreSurgeryQuestionVO selectPreSurgeryQuestionnaire(String clinicId) {
|
|
public BizPreSurgeryQuestionVO selectPreSurgeryQuestionnaire(String clinicId) {
|
|
|
//判断临床id是否为空
|
|
//判断临床id是否为空
|
|
|
if(StrUtil.isBlank(clinicId)){
|
|
if(StrUtil.isBlank(clinicId)){
|
|
|
- throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"患者信息不存在");
|
|
|
|
|
|
|
+ throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"参数为空");
|
|
|
}
|
|
}
|
|
|
BizClinicPO clinic = baseMapper.selectById(clinicId);
|
|
BizClinicPO clinic = baseMapper.selectById(clinicId);
|
|
|
|
|
+ if (ObjectUtil.isNull(clinic)){
|
|
|
|
|
+ throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"手术信息不存在");
|
|
|
|
|
+ }
|
|
|
String deptId = clinic.getDeptId();
|
|
String deptId = clinic.getDeptId();
|
|
|
Date lastQuestionTime = clinic.getLastQuestionTime();
|
|
Date lastQuestionTime = clinic.getLastQuestionTime();
|
|
|
|
|
|
|
|
//判断科室id是否为空
|
|
//判断科室id是否为空
|
|
|
if(StrUtil.isBlank(deptId)){
|
|
if(StrUtil.isBlank(deptId)){
|
|
|
- throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"科室信息不存在");
|
|
|
|
|
|
|
+ throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"手术未关联科室");
|
|
|
}
|
|
}
|
|
|
BizDeptDTO bizDeptDTO = bizDeptService.selectBizDeptById(deptId);
|
|
BizDeptDTO bizDeptDTO = bizDeptService.selectBizDeptById(deptId);
|
|
|
|
|
+ if (ObjectUtil.isNull(bizDeptDTO)){
|
|
|
|
|
+ throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"科室信息不存在");
|
|
|
|
|
+ }
|
|
|
String groupId = bizDeptDTO.getGroupId();
|
|
String groupId = bizDeptDTO.getGroupId();
|
|
|
//通过获取到的groupId查询问卷调查问题表
|
|
//通过获取到的groupId查询问卷调查问题表
|
|
|
List<BizWxDeptQuestionVO> questionVOList = bizQuestionService.selectBizQuestionByGroupId(groupId);
|
|
List<BizWxDeptQuestionVO> questionVOList = bizQuestionService.selectBizQuestionByGroupId(groupId);
|