Browse Source

用户收益明细

master
张彭杰 1 year ago
parent
commit
4299c98690
2 changed files with 12 additions and 0 deletions
  1. 10
      dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/marriagebounty/user/response/UserGetMarriageBountyOrderProductInfoVo.java
  2. 2
      dating-agency-mall-server/src/main/java/com/qniao/dam/query/marriagebounty/impl/MarriageBountyOrderQueryServiceImpl.java

10
dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/marriagebounty/user/response/UserGetMarriageBountyOrderProductInfoVo.java

@ -2,7 +2,10 @@ package com.qniao.dam.api.query.marriagebounty.user.response;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qniao.dam.domian.aggregate.marriagebount.constant.MarriageBountyOrderDisplay;
import com.qniao.dam.domian.aggregate.marriagebount.constant.MarriageBountyOrderType;
import com.qniao.dam.domian.aggregate.marriagebount.constant.MarriageBountyOrderVersion;
import com.qniao.dam.domian.aggregate.marriagebount.constant.PublishIdentityTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -15,6 +18,13 @@ public class UserGetMarriageBountyOrderProductInfoVo {
@JsonSerialize(using = ToStringSerializer.class)
private Long marriageBountyOrderId;
@ApiModelProperty("用户标识")
@JsonSerialize(using = ToStringSerializer.class)
private Long userId;
@ApiModelProperty("悬赏招亲发布者类型")
private PublishIdentityTypeEnum publishType;
@ApiModelProperty("悬赏招亲类型")
private MarriageBountyOrderType type;

2
dating-agency-mall-server/src/main/java/com/qniao/dam/query/marriagebounty/impl/MarriageBountyOrderQueryServiceImpl.java

@ -115,7 +115,9 @@ public class MarriageBountyOrderQueryServiceImpl implements MarriageBountyOrderQ
if (Objects.nonNull(marriageBountyOrder)) {
productInfoVo = new UserGetMarriageBountyOrderProductInfoVo();
productInfoVo.setMarriageBountyOrderId(marriageBountyOrder.getId());
productInfoVo.setUserId(marriageBountyOrder.getUserId());
productInfoVo.setType(marriageBountyOrder.getType());
productInfoVo.setPublishType(marriageBountyOrder.getPublishType());
productInfoVo.setRewardAmount(marriageBountyOrder.getRewardAmount());
productInfoVo.setMeetingQuantity(marriageBountyOrder.getMeetingQuantity());
if (MarriageBountyOrderVersion.V1.equals(marriageBountyOrder.getVersion())) {

Loading…
Cancel
Save