奖励池增加resourceGroupId
This commit is contained in:
parent
cbc975eef9
commit
8d20ad4899
@ -38,16 +38,21 @@ public class RewardPoolQueryExe {
|
||||
getGroupIds(ruleConfigs));
|
||||
|
||||
return ruleConfigs.stream()
|
||||
.map(weeklyGiftConfig -> getWeekRewardPoolCO(
|
||||
activityResources.get(weeklyGiftConfig.getResourceGroupId()).getActivityRewardProps()))
|
||||
.map(weeklyGiftConfig -> {
|
||||
List<ActivityRewardProps> activityRewardProps = activityResources.get(weeklyGiftConfig.getResourceGroupId()).getActivityRewardProps();
|
||||
return getWeekRewardPoolCO(weeklyGiftConfig.getResourceGroupId(), activityRewardProps);
|
||||
|
||||
})
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
private RewardPoolCO getWeekRewardPoolCO(
|
||||
private RewardPoolCO getWeekRewardPoolCO(Long resourceGroupId,
|
||||
List<ActivityRewardProps> activityPropsGroups) {
|
||||
|
||||
return new RewardPoolCO().setActivityRewardProps(activityPropsGroups.stream()
|
||||
return new RewardPoolCO()
|
||||
.setResourceGroupId(resourceGroupId)
|
||||
.setActivityRewardProps(activityPropsGroups.stream()
|
||||
.map(rewardProps -> new ActivityRewardPropsDTO()
|
||||
.setId(rewardProps.getId())
|
||||
.setCover(rewardProps.getCover())
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
package com.red.circle.other.app.dto.clientobject.activity;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.red.circle.framework.dto.ClientObject;
|
||||
import com.red.circle.other.inner.model.dto.activity.props.ActivityRewardPropsDTO;
|
||||
import java.util.List;
|
||||
@ -18,6 +20,9 @@ import lombok.experimental.Accessors;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class RewardPoolCO extends ClientObject {
|
||||
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long resourceGroupId;
|
||||
|
||||
/**
|
||||
* 奖励池.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user