|
@@ -13,7 +13,7 @@ import com.diagbot.dto.StaticKnowledgeDetailDTO;
|
|
import com.diagbot.dto.StaticKnowledgeIndexDTO;
|
|
import com.diagbot.dto.StaticKnowledgeIndexDTO;
|
|
import com.diagbot.entity.ConceptDetail;
|
|
import com.diagbot.entity.ConceptDetail;
|
|
import com.diagbot.entity.ConceptInfo;
|
|
import com.diagbot.entity.ConceptInfo;
|
|
-import com.diagbot.enums.ConceptTypeEnum;
|
|
|
|
|
|
+import com.diagbot.enums.StaticTypeEnum;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
import com.diagbot.exception.CommonException;
|
|
import com.diagbot.exception.CommonException;
|
|
@@ -247,7 +247,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
*/
|
|
*/
|
|
public StaticKnowledgeDTO getStaticKnowledge(StaticKnowledgeVO staticKnowledgeVO) {
|
|
public StaticKnowledgeDTO getStaticKnowledge(StaticKnowledgeVO staticKnowledgeVO) {
|
|
StaticKnowledgeDTO staticKnowledgeDTO = new StaticKnowledgeDTO();
|
|
StaticKnowledgeDTO staticKnowledgeDTO = new StaticKnowledgeDTO();
|
|
- String typeName = ConceptTypeEnum.getName(staticKnowledgeVO.getType());
|
|
|
|
|
|
+ String typeName = StaticTypeEnum.getName(staticKnowledgeVO.getType());
|
|
List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
typeName = convertTypeName(typeName, 1, dicList);
|
|
typeName = convertTypeName(typeName, 1, dicList);
|
|
|
|
|
|
@@ -344,7 +344,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
public List<StaticKnowledgeDTO> getStaticKnowledgeForHIS(StaticKnowledgeHISVO staticKnowledgeHISVO) {
|
|
public List<StaticKnowledgeDTO> getStaticKnowledgeForHIS(StaticKnowledgeHISVO staticKnowledgeHISVO) {
|
|
|
|
|
|
List<StaticKnowledgeDTO> retList = Lists.newArrayList();
|
|
List<StaticKnowledgeDTO> retList = Lists.newArrayList();
|
|
- String typeName = ConceptTypeEnum.getName(staticKnowledgeHISVO.getType());
|
|
|
|
|
|
+ String typeName = StaticTypeEnum.getName(staticKnowledgeHISVO.getType());
|
|
List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
typeName = convertTypeName(typeName, 1, dicList);
|
|
typeName = convertTypeName(typeName, 1, dicList);
|
|
|
|
|
|
@@ -546,7 +546,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
if (StringUtil.isNotBlank(conceptInfoPageVO.getType())) {
|
|
if (StringUtil.isNotBlank(conceptInfoPageVO.getType())) {
|
|
String typeName
|
|
String typeName
|
|
- = convertTypeName(ConceptTypeEnum.getName(Integer.valueOf(conceptInfoPageVO.getType())), 1, dicList);
|
|
|
|
|
|
+ = convertTypeName(StaticTypeEnum.getName(Integer.valueOf(conceptInfoPageVO.getType())), 1, dicList);
|
|
conceptInfoPageVO.setTypeName(typeName);
|
|
conceptInfoPageVO.setTypeName(typeName);
|
|
}
|
|
}
|
|
IPage<ConceptInfoDTO> page = super.getPage(conceptInfoPageVO);
|
|
IPage<ConceptInfoDTO> page = super.getPage(conceptInfoPageVO);
|
|
@@ -555,7 +555,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
records.forEach(record -> {
|
|
records.forEach(record -> {
|
|
String typeName = convertTypeName(record.getType(), 2, dicList);
|
|
String typeName = convertTypeName(record.getType(), 2, dicList);
|
|
record.setTypeName(typeName);
|
|
record.setTypeName(typeName);
|
|
- record.setType(String.valueOf(ConceptTypeEnum.getKey(typeName)));
|
|
|
|
|
|
+ record.setType(String.valueOf(StaticTypeEnum.getKey(typeName)));
|
|
});
|
|
});
|
|
}
|
|
}
|
|
page.setRecords(records);
|
|
page.setRecords(records);
|
|
@@ -573,7 +573,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
Date now = DateUtil.now();
|
|
Date now = DateUtil.now();
|
|
List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
//术语类型转换
|
|
//术语类型转换
|
|
- String typeName = convertTypeName(ConceptTypeEnum.getName(Integer.valueOf(conceptInfoVO.getType())), 1, dicList);
|
|
|
|
|
|
+ String typeName = convertTypeName(StaticTypeEnum.getName(Integer.valueOf(conceptInfoVO.getType())), 1, dicList);
|
|
conceptInfoVO.setTypeName(typeName);
|
|
conceptInfoVO.setTypeName(typeName);
|
|
ConceptInfo conceptInfo = new ConceptInfo();
|
|
ConceptInfo conceptInfo = new ConceptInfo();
|
|
|
|
|
|
@@ -681,7 +681,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
public Boolean isExist(ConceptInfoVO conceptInfoVO) {
|
|
public Boolean isExist(ConceptInfoVO conceptInfoVO) {
|
|
List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
//术语类型转换
|
|
//术语类型转换
|
|
- String typeName = convertTypeName(ConceptTypeEnum.getName(Integer.valueOf(conceptInfoVO.getType())), 1, dicList);
|
|
|
|
|
|
+ String typeName = convertTypeName(StaticTypeEnum.getName(Integer.valueOf(conceptInfoVO.getType())), 1, dicList);
|
|
conceptInfoVO.setTypeName(typeName);
|
|
conceptInfoVO.setTypeName(typeName);
|
|
QueryWrapper<ConceptInfo> conceptInfoQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<ConceptInfo> conceptInfoQueryWrapper = new QueryWrapper<>();
|
|
conceptInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
conceptInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
@@ -725,7 +725,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
//启用状态、修改人、修改时间为明细的内容
|
|
//启用状态、修改人、修改时间为明细的内容
|
|
String typeName = convertTypeName(conceptInfoDTO.getType(), 2, dicList);
|
|
String typeName = convertTypeName(conceptInfoDTO.getType(), 2, dicList);
|
|
conceptInfoDTO.setTypeName(typeName);
|
|
conceptInfoDTO.setTypeName(typeName);
|
|
- conceptInfoDTO.setType(String.valueOf(ConceptTypeEnum.getKey(typeName)));
|
|
|
|
|
|
+ conceptInfoDTO.setType(String.valueOf(StaticTypeEnum.getKey(typeName)));
|
|
conceptInfoDTO.setModifier(conceptDetailList.get(0).getModifier());
|
|
conceptInfoDTO.setModifier(conceptDetailList.get(0).getModifier());
|
|
conceptInfoDTO.setGmtModified(conceptDetailList.get(0).getGmtModified());
|
|
conceptInfoDTO.setGmtModified(conceptDetailList.get(0).getGmtModified());
|
|
conceptInfoDTO.setIsDeleted(conceptDetailList.get(0).getIsDeleted());
|
|
conceptInfoDTO.setIsDeleted(conceptDetailList.get(0).getIsDeleted());
|