Sfoglia il codice sorgente

设置规则调整

dzx 4 mesi fa
parent
commit
a6a1544118

+ 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) {