|
@@ -20,6 +20,7 @@ import com.diagbot.entity.wrapper.QuestionMappingWrapper;
|
|
import com.diagbot.entity.wrapper.QuestionWrapper;
|
|
import com.diagbot.entity.wrapper.QuestionWrapper;
|
|
import com.diagbot.enums.InsertOrUpdateEnum;
|
|
import com.diagbot.enums.InsertOrUpdateEnum;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
|
+import com.diagbot.enums.QuestionTypeEnum;
|
|
import com.diagbot.enums.TagTypeEnum;
|
|
import com.diagbot.enums.TagTypeEnum;
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
import com.diagbot.exception.CommonException;
|
|
import com.diagbot.exception.CommonException;
|
|
@@ -426,15 +427,28 @@ public class QuestionFacade extends QuestionInfoServiceImpl {
|
|
bean.setModifier(mapRespDTO.data.get(bean.getModifier()));
|
|
bean.setModifier(mapRespDTO.data.get(bean.getModifier()));
|
|
}
|
|
}
|
|
|
|
|
|
- List<String> nameList = res.getRecords().stream().map(row -> row.getTagName()).collect(Collectors.toList());
|
|
|
|
|
|
+ // 如果是化验明细项,获取name字段和术语库对应,其他用tagName
|
|
|
|
+ List<String> nameList = new ArrayList<>();
|
|
ConceptExistVO conceptExistVO = new ConceptExistVO();
|
|
ConceptExistVO conceptExistVO = new ConceptExistVO();
|
|
|
|
+ for (QuestionPageDTO bean : res.getRecords()) {
|
|
|
|
+ if (QuestionTypeEnum.Lis.getKey() == bean.getType() && TagTypeEnum.T7.getKey() != bean.getTagType().intValue()) {
|
|
|
|
+ nameList.add(bean.getName());
|
|
|
|
+ } else {
|
|
|
|
+ nameList.add(bean.getTagName());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
conceptExistVO.setNameList(nameList);
|
|
conceptExistVO.setNameList(nameList);
|
|
try {
|
|
try {
|
|
RespDTO<Map<String, List<Integer>>> resMap = knowledgemanServiceClient.getConceptMap(conceptExistVO);
|
|
RespDTO<Map<String, List<Integer>>> resMap = knowledgemanServiceClient.getConceptMap(conceptExistVO);
|
|
RespDTOUtil.respNGDeal(resMap, "远程调用根据名称和类型获取概念列表失败");
|
|
RespDTOUtil.respNGDeal(resMap, "远程调用根据名称和类型获取概念列表失败");
|
|
Map<String, List<Integer>> map = resMap.data;
|
|
Map<String, List<Integer>> map = resMap.data;
|
|
for (QuestionPageDTO bean : res.getRecords()) {
|
|
for (QuestionPageDTO bean : res.getRecords()) {
|
|
- List<Integer> list = map.get(bean.getTagName());
|
|
|
|
|
|
+ List<Integer> list = new ArrayList<>();
|
|
|
|
+ if (QuestionTypeEnum.Lis.getKey() == bean.getType() && TagTypeEnum.T7.getKey() != bean.getTagType().intValue()) {
|
|
|
|
+ list = map.get(bean.getName());
|
|
|
|
+ } else {
|
|
|
|
+ list = map.get(bean.getTagName());
|
|
|
|
+ }
|
|
if (ListUtil.isNotEmpty(list)) {
|
|
if (ListUtil.isNotEmpty(list)) {
|
|
if (list.contains(bean.getType())) {
|
|
if (list.contains(bean.getType())) {
|
|
bean.setExist(true);
|
|
bean.setExist(true);
|