Bladeren bron

设置规则调整

dzx 4 maanden geleden
bovenliggende
commit
a6a1544118
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  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) {