From 5a640d7b98dca8e12771c389e5bc7b93d4b38e79 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Mon, 19 Sep 2022 15:49:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=BD=93=E5=85=A8=E9=83=A8=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E5=90=8E=EF=BC=8C=E5=86=8D=E6=AC=A1=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4=E6=97=B6=E9=97=AE=E9=A2=98=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/rtss/services/training2/Training2DraftService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java b/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java index 0a0a6c132..b82c377a2 100644 --- a/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java +++ b/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java @@ -522,7 +522,7 @@ public class Training2DraftService { // 当前编辑后的步骤 Map> curStepIdMap = step2VOList.stream().filter(s -> s.getId() != null) .collect(Collectors.groupingBy(Step2VO::getMemberId, Collectors.mapping(s -> s.getId().toString(), Collectors.toList()))); - if (StringUtils.isEmpty(draftTraining2.getScoringRuleJson())) { + if (StringUtils.isEmpty(draftTraining2.getScoringRuleJson()) || CollectionUtils.isEmpty(curStepIdMap)) { return StringUtil.EMPTY_STRING; } else { // 比对删除打分规则