|
@@ -32,6 +32,7 @@ import com.diagbot.service.DiagnoseQuestionService;
|
|
|
import com.diagbot.service.DiagnoseService;
|
|
|
import com.diagbot.service.impl.DiagnoseServiceImpl;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
|
+import com.diagbot.util.CryptUtil;
|
|
|
import com.diagbot.util.DateUtil;
|
|
|
import com.diagbot.util.DiagnoseTypeConvertUtil;
|
|
|
import com.diagbot.util.EntityUtil;
|
|
@@ -149,6 +150,9 @@ public class DiagnoseFacade extends DiagnoseServiceImpl {
|
|
|
public List<ConceptBaseDTO> indexFac(DiseaseIndexVO diseaseIndexVO) {
|
|
|
// 设置诊断类型
|
|
|
diseaseIndexVO.setLibType(LexiconTypeEnum.DIAGNOSIS.getKey());
|
|
|
+ List<Diagnose> diagnoseList = this.list(
|
|
|
+ new QueryWrapper<Diagnose>().eq("is_deleted", IsDeleteEnum.N.getKey()));
|
|
|
+ diseaseIndexVO.setDisNamList(diagnoseList.stream().map(r -> r.getDisName()).distinct().collect(Collectors.toList()));
|
|
|
return this.index(diseaseIndexVO);
|
|
|
}
|
|
|
|
|
@@ -533,8 +537,8 @@ public class DiagnoseFacade extends DiagnoseServiceImpl {
|
|
|
if (DiagnoseFeatureTypeEnum.Lis.getKey() == bean.getType()) {
|
|
|
String oldVerifyUnique = bean.getVerifyUnique();
|
|
|
if (StringUtil.isNotEmpty(bean.getUniqueName())) { // 公表项数据不为空
|
|
|
- if (!lisMappingSet.contains(bean.getStandard() + "__" + bean.getRelation()
|
|
|
- + "__" + bean.getUniqueName())) {
|
|
|
+ if (!lisMappingSet.contains(CryptUtil.encrypt_char(bean.getStandard()) + "__" + CryptUtil.encrypt_char(bean.getRelation())
|
|
|
+ + "__" + CryptUtil.encrypt_char(bean.getUniqueName()))) {
|
|
|
bean.setVerifyUnique("无公表项");
|
|
|
diagnoseName.add(bean.getDisName());
|
|
|
} else {
|
|
@@ -723,7 +727,7 @@ public class DiagnoseFacade extends DiagnoseServiceImpl {
|
|
|
int count = conceptFacade.count(new QueryWrapper<Concept>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("lib_type", LexiconTypeEnum.DIAGNOSIS.getKey())
|
|
|
- .eq("lib_name", diagnoseWrapper.getDisName())
|
|
|
+ .eq("lib_name", CryptUtil.encrypt_char(diagnoseWrapper.getDisName()))
|
|
|
);
|
|
|
if (count == 0) {
|
|
|
flag = false;
|
|
@@ -972,7 +976,7 @@ public class DiagnoseFacade extends DiagnoseServiceImpl {
|
|
|
*/
|
|
|
public boolean verifyExist(Set<String> set, String name, List<Integer> type) {
|
|
|
for (Integer integer : type) {
|
|
|
- if (set.contains(name + "_" + integer)) {
|
|
|
+ if (set.contains(CryptUtil.encrypt_char(name) + "_" + integer)) {
|
|
|
return true;
|
|
|
}
|
|
|
}
|