Browse Source

订单退款申请

master
张彭杰 1 year ago
parent
commit
6dad1960f9
1 changed files with 1 additions and 5 deletions
  1. 6
      dating-agency-mall-server/src/main/java/com/qniao/dam/application/service/marriagebounty/MarriageBountyOrderApplicationService.java

6
dating-agency-mall-server/src/main/java/com/qniao/dam/application/service/marriagebounty/MarriageBountyOrderApplicationService.java

@ -60,17 +60,13 @@ public class MarriageBountyOrderApplicationService extends BaseApplicationServic
private PaymentOrderRefundApplicationService paymentOrderRefundApplicationService;
@Resource
private RewardConfigQueryService rewardConfigQueryService;
@Resource
private OrderQueryService orderQueryService;
public void save(Long orderId) {
Order order = orderRepository.load(orderId);
MarriageBountyOrder marriageBountyOrder;
marriageBountyOrder = marriageBountyOrderQueryService.queryBy(order.getUserId(), order.getMiId(),
MarriageBountyOrderStatusEnum.INIT, MarriageBountyOrderPaymentStatusEnum.INIT);
if (Objects.isNull(marriageBountyOrder)) {
//新的悬赏招亲
marriageBountyOrder = MarriageBountyOrder.build(order.getUserId(), order.getMiId());
if (Objects.nonNull(marriageBountyOrder)) {
//订单关系
MarriageBountyOrderRel orderRel = MarriageBountyOrderRel.build(orderId, order.getSettlementAmount());
marriageBountyOrder.setOrderRelList(Collections.singletonList(orderRel));

Loading…
Cancel
Save