|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.client.UserServiceClient;
|
|
|
import com.diagbot.dto.GetDeptInfoDTO;
|
|
|
+import com.diagbot.dto.GetDeptNameDTO;
|
|
|
import com.diagbot.dto.GetQuestionUsualAndTypeDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.entity.DeptInfo;
|
|
@@ -171,7 +172,7 @@ public class DeptInfoFacade extends DeptInfoServiceImpl {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<DeptInfo> getAllDeptInfo(GetQuestionUsualAndTypeVO getQuestionUsualAndTypeVO) {
|
|
|
+ public List<GetDeptNameDTO> getAllDeptInfo(GetQuestionUsualAndTypeVO getQuestionUsualAndTypeVO) {
|
|
|
//查询当前类型已经添加过得常用标签所关联的科室
|
|
|
List<GetQuestionUsualAndTypeDTO> getQuestionUsualAndTypeDTOS = questionUsualFacade.getQuestionUsualByDeptIds(getQuestionUsualAndTypeVO);
|
|
|
List<Long> deptIds = getQuestionUsualAndTypeDTOS.stream().map(getQuestionUsualAndTypeDTO -> getQuestionUsualAndTypeDTO.getDeptId()).collect(Collectors.toList());
|
|
@@ -180,6 +181,7 @@ public class DeptInfoFacade extends DeptInfoServiceImpl {
|
|
|
queryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey())
|
|
|
.notIn("id",deptIds);
|
|
|
List<DeptInfo> deptInfoList = this.list(queryWrapper);
|
|
|
+ List<GetDeptNameDTO> getDeptNameDTOS = BeanUtil.listCopyTo(deptInfoList,GetDeptNameDTO.class);
|
|
|
/*//查询所有科室
|
|
|
QueryWrapper<DeptInfo> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey());
|
|
@@ -232,7 +234,7 @@ public class DeptInfoFacade extends DeptInfoServiceImpl {
|
|
|
deptInfoDTOS.add(deptInfoDTO);
|
|
|
}
|
|
|
}*/
|
|
|
- return deptInfoList;
|
|
|
+ return getDeptNameDTOS;
|
|
|
}
|
|
|
|
|
|
/**
|