|
@@ -2,8 +2,8 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.diagbot.client.CdssCoreClient;
|
|
|
import com.diagbot.dto.IndicationDTO;
|
|
|
-import com.diagbot.dto.PushBaseCoreDTO;
|
|
|
-import com.diagbot.dto.PushCoreDTO;
|
|
|
+import com.diagbot.dto.PushBaseDTO;
|
|
|
+import com.diagbot.dto.PushDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.ListUtil;
|
|
@@ -44,17 +44,17 @@ public class PushFacade {
|
|
|
*
|
|
|
* @param pushVO
|
|
|
*/
|
|
|
- public PushCoreDTO push(PushVO pushVO) {
|
|
|
+ public PushDTO push(PushVO pushVO) {
|
|
|
SearchData searchData = new SearchData();
|
|
|
BeanUtil.copyProperties(pushVO, searchData);
|
|
|
searchData = assembleFacade.assembleData(searchData);
|
|
|
BeanUtil.copyProperties(searchData, pushVO);
|
|
|
- RespDTO<PushCoreDTO> resp = cdssCoreClient.push(pushVO);
|
|
|
+ RespDTO<PushDTO> resp = cdssCoreClient.push(pushVO);
|
|
|
RespDTOUtil.respNGDealCover(resp, "远程调用推理接口失败");
|
|
|
- PushCoreDTO data = resp.data;
|
|
|
+ PushDTO data = resp.data;
|
|
|
//TODO 外部名称映射
|
|
|
if (ListUtil.isNotEmpty(data.getLis())) {
|
|
|
- List<PushBaseCoreDTO> retLis = data.getLis();
|
|
|
+ List<PushBaseDTO> retLis = data.getLis();
|
|
|
List<String> uniqueNameList = retLis.stream()
|
|
|
.map(i -> i.getName())
|
|
|
.collect(Collectors.toList());
|
|
@@ -70,7 +70,7 @@ public class PushFacade {
|
|
|
}
|
|
|
}
|
|
|
if (ListUtil.isNotEmpty(data.getPacs())) {
|
|
|
- List<PushBaseCoreDTO> retPacs = data.getPacs();
|
|
|
+ List<PushBaseDTO> retPacs = data.getPacs();
|
|
|
List<String> uniqueNameList = retPacs.stream()
|
|
|
.map(i -> i.getName())
|
|
|
.collect(Collectors.toList());
|
|
@@ -86,9 +86,9 @@ public class PushFacade {
|
|
|
}
|
|
|
}
|
|
|
if (data.getDis() != null && data.getDis().size() > 0) {
|
|
|
- Map<String, List<PushBaseCoreDTO>> retMap = data.getDis();
|
|
|
+ Map<String, List<PushBaseDTO>> retMap = data.getDis();
|
|
|
List<String> uniqueNameList = Lists.newLinkedList();
|
|
|
- for (Map.Entry<String, List<PushBaseCoreDTO>> entry : retMap.entrySet()) {
|
|
|
+ for (Map.Entry<String, List<PushBaseDTO>> entry : retMap.entrySet()) {
|
|
|
if (ListUtil.isNotEmpty(entry.getValue())) {
|
|
|
uniqueNameList.addAll(entry.getValue().stream()
|
|
|
.map(i -> i.getName())
|
|
@@ -98,7 +98,7 @@ public class PushFacade {
|
|
|
if (ListUtil.isNotEmpty(uniqueNameList)) {
|
|
|
Map<String, Map<String, Long>> uniqueNameMap
|
|
|
= diseaseConfigFacade.getUniqueNameConfigMap(pushVO.getHospitalId(), null, uniqueNameList);
|
|
|
- for (Map.Entry<String, List<PushBaseCoreDTO>> entry : retMap.entrySet()) {
|
|
|
+ for (Map.Entry<String, List<PushBaseDTO>> entry : retMap.entrySet()) {
|
|
|
if (uniqueNameMap != null && uniqueNameMap.size() > 0) {
|
|
|
entry.getValue().forEach(item -> {
|
|
|
if (uniqueNameMap.get(item.getName()) != null) {
|