|
@@ -475,14 +475,13 @@ public class ActivityPlanServiceImpl extends ServiceImpl<ActivityPlanDao, Activi
|
|
|
Long activityId = saveOrUpdateRewardDto.getActivityId();
|
|
|
List<ActivityPlanRewardDto> updateRewardDtoList = saveOrUpdateRewardDto.getUpdateRewardDtoList();
|
|
|
|
|
|
- if(CollectionUtils.isNotEmpty(updateRewardDtoList)){
|
|
|
+ if(CollectionUtils.isEmpty(updateRewardDtoList)){
|
|
|
updateRewardDtoList = new ArrayList<>();
|
|
|
}
|
|
|
|
|
|
for (ActivityPlanRewardDto rewardDto : updateRewardDtoList) {
|
|
|
activityPlanRewardService.saveOrUpdateReward(rewardDto);
|
|
|
}
|
|
|
-
|
|
|
//还有删除的
|
|
|
List<Long> rewardIds = updateRewardDtoList.stream().map(ActivityPlanRewardDto::getRewardId).collect(Collectors.toList());
|
|
|
List<ActivityPlanReward> delList = activityPlanRewardService.getDelRewardList(activityId, rewardIds);
|