|
@@ -116,16 +116,18 @@ public class AIFacade {
|
|
|
items.add(item);
|
|
|
}
|
|
|
}
|
|
|
- //获取对接科室
|
|
|
- if (ListUtil.isNotEmpty(items)) {
|
|
|
- HospitalDeptVO hospitalDeptVO = new HospitalDeptVO();
|
|
|
- hospitalDeptVO.setHospitalCode(aivo.getHospitalCode());
|
|
|
- hospitalDeptVO.setConceptNames(items.stream().map(i -> i.getExtraProperty()).collect(Collectors.toList()));
|
|
|
- RespDTO<Map<String, List<HospitalDeptDTO>>> retDeptMap = tranServiceClient.hospitalDeptByConceptNames(hospitalDeptVO);
|
|
|
- if (RespDTOUtil.respIsOK(retDeptMap)) {
|
|
|
- Map<String, List<HospitalDeptDTO>> deptMap = retDeptMap.data;
|
|
|
- for (FeatureRate item : items) {
|
|
|
- item.setHospitalDepts(deptMap.get(item.getExtraProperty()));
|
|
|
+ if(StringUtil.isNotBlank(aivo.getHospitalCode())){
|
|
|
+ //获取对接科室
|
|
|
+ if (ListUtil.isNotEmpty(items)) {
|
|
|
+ HospitalDeptVO hospitalDeptVO = new HospitalDeptVO();
|
|
|
+ hospitalDeptVO.setHospitalCode(aivo.getHospitalCode());
|
|
|
+ hospitalDeptVO.setConceptNames(items.stream().map(i -> i.getExtraProperty()).collect(Collectors.toList()));
|
|
|
+ RespDTO<Map<String, List<HospitalDeptDTO>>> retDeptMap = tranServiceClient.hospitalDeptByConceptNames(hospitalDeptVO);
|
|
|
+ if (RespDTOUtil.respIsOK(retDeptMap)) {
|
|
|
+ Map<String, List<HospitalDeptDTO>> deptMap = retDeptMap.data;
|
|
|
+ for (FeatureRate item : items) {
|
|
|
+ item.setHospitalDepts(deptMap.get(item.getExtraProperty()));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|