Quellcode durchsuchen

二期模板维护获bug修正

wangyu vor 6 Jahren
Ursprung
Commit
c76c90e8e5

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

@@ -421,7 +421,7 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
                 .eq("return_type", 1)
                 .notIn("val",types)
                 .orderByAsc("order_no");
-        if(getModuleTypeVO.getRelationId().intValue() == -1){//如果是-1时返回所有子模板
+        if(getModuleTypeVO.getRelationId() != null && getModuleTypeVO.getRelationId().intValue() == -1){//如果是-1时返回所有子模板
             dictionaryInfoQueryWrapper.in("val","322","31","32");
         }
         List<DictionaryInfo> dictionaryInfoList = dictionaryFacade.list(dictionaryInfoQueryWrapper);