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