Browse Source

红娘订单

master
张彭杰 1 year ago
parent
commit
5202d152c1
3 changed files with 4 additions and 4 deletions
  1. 2
      dating-agency-mall-sdk/src/main/java/com/qniao/dam/application/request/UserAcquireMatchmakerJoinRecommendRewardDto.java
  2. 4
      dating-agency-mall-server/src/main/java/com/qniao/dam/api/command/reward/user/request/UserAcquireMatchmakerJoinRecommendRewardDto.java
  3. 2
      dating-agency-mall-server/src/main/java/com/qniao/dam/application/service/reward/RewardApplicationService.java

2
dating-agency-mall-sdk/src/main/java/com/qniao/dam/application/request/UserAcquireMatchmakerJoinRecommendRewardDto.java

@ -14,7 +14,7 @@ public class UserAcquireMatchmakerJoinRecommendRewardDto {
private Long receiveUserId; private Long receiveUserId;
private Long storeOrgId; private Long storeOrgId;
private Long operationCenterOrgId; private Long operationCenterOrgId;
private ProductSubCategoryEnum type;
private Long associateOrderId;
private MatchmakerLevelEnum initiatorLevel; private MatchmakerLevelEnum initiatorLevel;
private MatchmakerLevelEnum receiveLevel; private MatchmakerLevelEnum receiveLevel;
} }

4
dating-agency-mall-server/src/main/java/com/qniao/dam/api/command/reward/user/request/UserAcquireMatchmakerJoinRecommendRewardDto.java

@ -22,8 +22,8 @@ public class UserAcquireMatchmakerJoinRecommendRewardDto {
@ApiModelProperty("运营中心组织id") @ApiModelProperty("运营中心组织id")
private Long operationCenterOrgId; private Long operationCenterOrgId;
@ApiModelProperty("红娘类型")
private ProductSubCategoryEnum type;
@ApiModelProperty("关联订单")
private Long associateOrderId;
@ApiModelProperty("发起红娘级别") @ApiModelProperty("发起红娘级别")
private MatchmakerLevelEnum initiatorLevel; private MatchmakerLevelEnum initiatorLevel;

2
dating-agency-mall-server/src/main/java/com/qniao/dam/application/service/reward/RewardApplicationService.java

@ -65,7 +65,7 @@ public class RewardApplicationService {
*/ */
public void acquireMatchmakerJoinRecommendReward(UserAcquireMatchmakerJoinRecommendRewardDto dto) { public void acquireMatchmakerJoinRecommendReward(UserAcquireMatchmakerJoinRecommendRewardDto dto) {
//红娘加盟订单 //红娘加盟订单
Order associateOrder = orderQueryService.queryBySubCategory(dto.getReceiveUserId(), dto.getType());
Order associateOrder = orderDao.selectById(dto.getAssociateOrderId());
if (Objects.nonNull(associateOrder)) { if (Objects.nonNull(associateOrder)) {
BigDecimal rewardAmount = associateOrder.getSettlementAmount(); BigDecimal rewardAmount = associateOrder.getSettlementAmount();
//推荐的红娘 //推荐的红娘

Loading…
Cancel
Save