瀏覽代碼

设置规则调整

dzx 4 月之前
父節點
當前提交
a6a1544118
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/java/com/xjrsoft/module/banding/controller/BandingTaskController.java

+ 2 - 1
src/main/java/com/xjrsoft/module/banding/controller/BandingTaskController.java

@@ -145,7 +145,8 @@ public class BandingTaskController {
     public RT<List<BandingTaskRuleVo>> ruleList(@RequestParam Long id){
         List<BandingRule> ruleList = ruleService.list();
 
-        Set<Long> collect = taskRuleService.list().stream().map(BandingTaskRule::getBandingRuleId).collect(Collectors.toSet());
+        Set<Long> collect = taskRuleService.list(new QueryWrapper<BandingTaskRule>().lambda().eq(BandingTaskRule::getBandingTaskId, id))
+                .stream().map(BandingTaskRule::getBandingRuleId).collect(Collectors.toSet());
 
         List<BandingTaskRuleVo> list = new ArrayList<>();
         for (BandingRule bandingRule : ruleList) {