Browse Source

代码优化

gaodm 5 years ago
parent
commit
4c91a37b9a

+ 1 - 1
icssman-service/src/main/java/com/diagbot/facade/ModuleInfoFacade.java

@@ -501,7 +501,7 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
         dictionaryInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
                 .eq("group_type", 4)
                 .eq("return_type", 1)
-                .notIn("val", types)
+                .notIn(ListUtil.isNotEmpty(types), "val", types)
                 .orderByAsc("order_no");
         if (getModuleTypeVO.getRelationId() != null && getModuleTypeVO.getRelationId().intValue() == -1) {
             //如果是-1时返回所有子模板

+ 1 - 1
knowledgeman-service/src/main/java/com/diagbot/facade/DiagnoseFacade.java

@@ -181,7 +181,7 @@ public class DiagnoseFacade extends DiagnoseServiceImpl {
                 .eq("type_id", 18)
                 .eq("is_deleted", IsDeleteEnum.N.getKey())
                 .eq("is_concept", 1)
-                .notIn("name", disName)
+                .notIn(ListUtil.isNotEmpty(disName), "name", disName)
         ).getRecords();
         List<Diagnose> diagnoseData = new ArrayList<>();
         for (LibraryInfo diagnose : diagnoses) {

+ 1 - 1
precman-service/src/main/java/com/diagbot/facade/ModuleInfoFacade.java

@@ -334,7 +334,7 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
                 .eq("group_type", 1)
                 .eq("return_type", 1)
                 .orderByAsc("order_no")
-                .notIn("val", types);
+                .notIn(ListUtil.isNotEmpty(types), "val", types);
         List<DictionaryInfo> dictionaryInfoList = dictionaryFacade.list(dictionaryInfoQueryWrapper);
         List<GetModuleTypeDTO> getModuleTypeDTOS = new ArrayList<>();
         for (DictionaryInfo dictionaryInfo : dictionaryInfoList) {