【当全部清除后,再次添加步骤时问题】

This commit is contained in:
weizhihong 2022-09-19 15:49:07 +08:00
parent 722532cf0f
commit 5a640d7b98

View File

@ -522,7 +522,7 @@ public class Training2DraftService {
// 当前编辑后的步骤
Map<String, List<String>> 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 {
// 比对删除打分规则