12 changed files with 248 additions and 18 deletions
Unified View
Diff Options
-
17dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/revenuereward/user/RevenueRewardUserQueryController.java
-
25dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/revenuereward/user/request/UsePageRevenueRewardRecordByOperatorQueryParams.java
-
42dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/revenuereward/user/response/RevenueRewardAssociateOrderRecordVo.java
-
55dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/revenuereward/user/response/UsePageRevenueRewardRecordByOperatorVo.java
-
8dating-agency-mall-server/src/main/java/com/qniao/dam/application/service/order/OrderApplicationService.java
-
7dating-agency-mall-server/src/main/java/com/qniao/dam/infrastructure/persistent/dao/domain/MatchmakerAuditDao.java
-
10dating-agency-mall-server/src/main/java/com/qniao/dam/infrastructure/persistent/dao/view/RevenueRewardViewDao.java
-
3dating-agency-mall-server/src/main/java/com/qniao/dam/query/matchmaker/MatchmakerQueryService.java
-
12dating-agency-mall-server/src/main/java/com/qniao/dam/query/matchmaker/impl/MatchmakerQueryServiceImpl.java
-
4dating-agency-mall-server/src/main/java/com/qniao/dam/query/revenuereward/RevenueRewardQueryService.java
-
23dating-agency-mall-server/src/main/java/com/qniao/dam/query/revenuereward/impl/RevenueRewardQueryServiceImpl.java
-
60dating-agency-mall-server/src/main/resources/mapper/revenuereward/RevenueRewardViewMapper.xml
@ -0,0 +1,25 @@ |
|||||
|
package com.qniao.dam.api.query.revenuereward.user.request; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
@Data |
||||
|
public class UsePageRevenueRewardRecordByOperatorQueryParams { |
||||
|
|
||||
|
@ApiModelProperty("收益者名称") |
||||
|
private String revenueOwnerName; |
||||
|
|
||||
|
@ApiModelProperty("收益者手机") |
||||
|
private String revenueOwnerPhone; |
||||
|
|
||||
|
@ApiModelProperty("创建开始时间") |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private LocalDateTime createTimeFrom; |
||||
|
|
||||
|
@ApiModelProperty("创建结束时间") |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private LocalDateTime createTimeTo; |
||||
|
} |
||||
@ -0,0 +1,42 @@ |
|||||
|
package com.qniao.dam.api.query.revenuereward.user.response; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
@Data |
||||
|
public class RevenueRewardAssociateOrderRecordVo { |
||||
|
|
||||
|
@ApiModelProperty("收益记录标识") |
||||
|
@JsonSerialize(using = ToStringSerializer.class) |
||||
|
private Long revenueRewardRecordId; |
||||
|
|
||||
|
@ApiModelProperty("有关联的订单") |
||||
|
@JsonSerialize(using = ToStringSerializer.class) |
||||
|
private Long associateOrderId; |
||||
|
|
||||
|
@ApiModelProperty("订单号") |
||||
|
private String orderCode; |
||||
|
|
||||
|
@ApiModelProperty("有关联的金额") |
||||
|
private BigDecimal associateOrderAmount; |
||||
|
|
||||
|
@ApiModelProperty("订单时间") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private LocalDateTime orderTime; |
||||
|
|
||||
|
@ApiModelProperty("微信支付单号") |
||||
|
private String wechatOrderNo; |
||||
|
|
||||
|
@ApiModelProperty("服务用户名称") |
||||
|
private String serviceUserName; |
||||
|
|
||||
|
@ApiModelProperty("服务用户手机") |
||||
|
private String serviceUserPhone; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,55 @@ |
|||||
|
package com.qniao.dam.api.query.revenuereward.user.response; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
||||
|
import com.qniao.dam.domian.aggregate.product.constant.ProductSubCategoryEnum; |
||||
|
import com.qniao.dam.domian.aggregate.walletaccount.constant.TradeTypeEnum; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class UsePageRevenueRewardRecordByOperatorVo { |
||||
|
|
||||
|
@ApiModelProperty("收益记录标识") |
||||
|
@JsonSerialize(using = ToStringSerializer.class) |
||||
|
private Long revenueRewardRecordId; |
||||
|
|
||||
|
@ApiModelProperty("创建时间") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private LocalDateTime createTime; |
||||
|
|
||||
|
@ApiModelProperty("收益者名称") |
||||
|
private String revenueOwnerName; |
||||
|
|
||||
|
@ApiModelProperty("收益者手机") |
||||
|
private String revenueOwnerPhone; |
||||
|
|
||||
|
@ApiModelProperty("红娘身份类型") |
||||
|
private ProductSubCategoryEnum matchmakerType; |
||||
|
|
||||
|
@ApiModelProperty("交易类型") |
||||
|
private TradeTypeEnum tradeType; |
||||
|
|
||||
|
@ApiModelProperty("订单金额") |
||||
|
private BigDecimal totalAssociateOrderAmount; |
||||
|
|
||||
|
@ApiModelProperty("营收额百分比 收入占比") |
||||
|
private BigDecimal revenuePct; |
||||
|
|
||||
|
@ApiModelProperty("营收额 营收金额") |
||||
|
private BigDecimal revenue; |
||||
|
|
||||
|
@ApiModelProperty("服务费百分比 抽佣占比") |
||||
|
private BigDecimal servicePct; |
||||
|
|
||||
|
@ApiModelProperty("收益额 实收金额") |
||||
|
private BigDecimal earnings; |
||||
|
|
||||
|
@ApiModelProperty("关联订单") |
||||
|
private List<RevenueRewardAssociateOrderRecordVo> associateOrderRecordList; |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
package com.qniao.dam.infrastructure.persistent.dao.domain; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.qniao.dau.domain.aggregate.matchmakeraudit.entity.MatchmakerAudit; |
||||
|
|
||||
|
public interface MatchmakerAuditDao extends BaseMapper<MatchmakerAudit> { |
||||
|
} |
||||
@ -1,7 +1,10 @@ |
|||||
package com.qniao.dam.query.matchmaker; |
package com.qniao.dam.query.matchmaker; |
||||
|
|
||||
import com.qniao.dau.domain.aggregate.matchmaker.entity.Matchmaker; |
import com.qniao.dau.domain.aggregate.matchmaker.entity.Matchmaker; |
||||
|
import com.qniao.dau.domain.aggregate.matchmakeraudit.entity.MatchmakerAudit; |
||||
|
|
||||
public interface MatchmakerQueryService { |
public interface MatchmakerQueryService { |
||||
Matchmaker queryByUserId(Long userId); |
Matchmaker queryByUserId(Long userId); |
||||
|
|
||||
|
MatchmakerAudit queryAuditByUserId(Long userId); |
||||
} |
} |
||||
Write
Preview
Loading…
Cancel
Save