|
@@ -7,6 +7,7 @@ import com.diagbot.dto.GetQuestionInfoDTO;
|
|
|
import com.diagbot.dto.QuestionIndexDTO;
|
|
|
import com.diagbot.dto.QuestionPageDTO;
|
|
|
import com.diagbot.entity.CommonParam;
|
|
|
+import com.diagbot.entity.DeptInfo;
|
|
|
import com.diagbot.entity.QuestionDetail;
|
|
|
import com.diagbot.entity.QuestionInfo;
|
|
|
import com.diagbot.entity.QuestionMapping;
|
|
@@ -57,6 +58,8 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
|
|
|
QuestionMappingFacade questionMappingFacade;
|
|
|
@Autowired
|
|
|
ModuleDetailFacade moduleDetailFacade;
|
|
|
+ @Autowired
|
|
|
+ DeptInfoFacade deptInfoFacade;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -317,6 +320,15 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
|
|
|
* @return
|
|
|
*/
|
|
|
public List<GetQuestionInfoDTO> getQuestionUsualByDept(GetQuestionUsualByDeptVO getQuestionUsualByDeptVO){
|
|
|
+ //先判断科室是不是已被删除
|
|
|
+ QueryWrapper<DeptInfo> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey())
|
|
|
+ .eq("id",getQuestionUsualByDeptVO.getDeptId());
|
|
|
+ List<DeptInfo> deptInfoList = deptInfoFacade.list(queryWrapper);
|
|
|
+ if(ListUtil.isEmpty(deptInfoList)){
|
|
|
+ throw new CommonException(CommonErrorCode.NOT_EXISTS, "科室信息不存在");
|
|
|
+ }
|
|
|
+ //获取常用标签信息
|
|
|
List<GetQuestionInfoDTO> getQuestionInfoDTOList = this.getQuestionUsualsByDept(getQuestionUsualByDeptVO);
|
|
|
return getQuestionInfoDTOList;
|
|
|
}
|