|
@@ -9,6 +9,8 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import com.diagbot.config.CryptConfiguer;
|
|
|
+import com.diagbot.util.CryptUtil;
|
|
|
import org.apache.commons.lang.time.DateFormatUtils;
|
|
|
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
|
|
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
@@ -66,6 +68,8 @@ public class RelationFacade extends RelationServiceImpl {
|
|
|
@Autowired
|
|
|
@Qualifier("relationServiceImpl")
|
|
|
private RelationService relationService;
|
|
|
+ @Autowired
|
|
|
+ private CryptConfiguer cryptConfiguer;
|
|
|
|
|
|
/**
|
|
|
* 获取医学术语关系列表
|
|
@@ -137,7 +141,8 @@ public class RelationFacade extends RelationServiceImpl {
|
|
|
throw new CommonException(CommonErrorCode.RPC_ERROR, "起始术语不存在");
|
|
|
}
|
|
|
getRelationInfoDetailDTO.setStartId(startLibraryInfo.getConceptId());
|
|
|
- getRelationInfoDetailDTO.setStartName(startLibraryInfo.getName());
|
|
|
+ getRelationInfoDetailDTO.setStartName(
|
|
|
+ cryptConfiguer.cryptFlag ? CryptUtil.decrypt_char(startLibraryInfo.getName()) : startLibraryInfo.getName());
|
|
|
getRelationInfoDetailDTO.setStartType(LexiconTypeEnum.getName(startLibraryInfo.getTypeId().intValue()));
|
|
|
|
|
|
|
|
@@ -150,7 +155,8 @@ public class RelationFacade extends RelationServiceImpl {
|
|
|
throw new CommonException(CommonErrorCode.RPC_ERROR, "终点术语不存在");
|
|
|
}
|
|
|
getRelationInfoDetailDTO.setEndId(endLibraryInfo.getConceptId());
|
|
|
- getRelationInfoDetailDTO.setEndName(endLibraryInfo.getName());
|
|
|
+ getRelationInfoDetailDTO.setEndName(
|
|
|
+ cryptConfiguer.cryptFlag ? CryptUtil.decrypt_char(endLibraryInfo.getName()) : endLibraryInfo.getName());
|
|
|
getRelationInfoDetailDTO.setEndType(LexiconTypeEnum.getName(endLibraryInfo.getTypeId().intValue()));
|
|
|
|
|
|
LexiconRelationship lexiconRelationship = lexiconRelationshipFacade.getById(relation.getRelationId());
|
|
@@ -197,6 +203,11 @@ public class RelationFacade extends RelationServiceImpl {
|
|
|
private Map<String, Object> checkAddRelationInfoVO(AddRelationInfoVO addRelationInfoVO) {
|
|
|
Map<String, Object> retMap = new HashMap<>();
|
|
|
|
|
|
+ addRelationInfoVO.setStartName(
|
|
|
+ cryptConfiguer.cryptFlag ? CryptUtil.encrypt_char(addRelationInfoVO.getStartName()) : addRelationInfoVO.getStartName());
|
|
|
+ addRelationInfoVO.setEndName(
|
|
|
+ cryptConfiguer.cryptFlag ? CryptUtil.encrypt_char(addRelationInfoVO.getEndName()) : addRelationInfoVO.getEndName());
|
|
|
+
|
|
|
QueryWrapper<LibraryInfo> libraryInfoQe1 = new QueryWrapper<>();
|
|
|
libraryInfoQe1.eq("is_deleted", "N");
|
|
|
libraryInfoQe1.eq("is_concept", 1);
|