Browse Source

二期模板维护类型获取

wangyu 6 years ago
parent
commit
2d68dd9f9d

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

@@ -393,7 +393,8 @@ public class ModuleInfoFacade extends ModuleInfoServiceImpl {
     public List<GetModuleTypeDTO> getModuleType(GetModuleTypeVO getModuleTypeVO){
         QueryWrapper<ModuleInfo> moduleInfoQueryWrapper = new QueryWrapper<>();
         moduleInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
-                .eq("module_Type", getModuleTypeVO.getModuleType());
+                .eq("module_Type", getModuleTypeVO.getModuleType())
+                .eq("relation_id", getModuleTypeVO.getRelationId());
         List<ModuleInfo> moduleInfos = this.list(moduleInfoQueryWrapper);
         List<Integer> types = moduleInfos.stream().map(moduleInfo -> moduleInfo.getType()).collect(Collectors.toList());
         //获取模板类型

+ 2 - 0
icssman-service/src/main/java/com/diagbot/vo/GetModuleTypeVO.java

@@ -15,4 +15,6 @@ import javax.validation.constraints.NotNull;
 public class GetModuleTypeVO {
     @NotNull(message = "请输入moduleType")
     private Long moduleType;
+    @NotNull(message = "请输入relationId")
+    private Long relationId;
 }