| | |
| | | List<HongBaoOrder> hongBaoOrderList = hongBaoOrderService.listDetailByOrderIdAndSourceType(orderId,
|
| | | orderType);
|
| | | int goodsCount = 0;
|
| | | BigDecimal fanMoney = new BigDecimal(0);
|
| | | for (HongBaoOrder hongBaoOrder : hongBaoOrderList) {
|
| | | if (hongBaoOrder.getCommonOrder().getState() != CommonOrder.STATE_SX)
|
| | | if (hongBaoOrder.getCommonOrder().getState() != CommonOrder.STATE_SX) {
|
| | | goodsCount += hongBaoOrder.getCommonOrder().getCount();
|
| | | fanMoney = fanMoney.add(hongBaoOrder.getHongBaoV2().getMoney());
|
| | | }
|
| | | }
|
| | |
|
| | | // TODO 分享订单可找回
|
| | | if (order != null)
|
| | | userOrderMsgNotificationService.orderFoundSuccess(lo.getUserInfo().getId(), orderId, orderType,
|
| | | Constant.TYPE_REBATE, order.getMoney(), order.getMoney(), goodsCount,
|
| | | new Date(lo.getCreateTime()));
|
| | | Constant.TYPE_REBATE, order.getMoney(), fanMoney, goodsCount, new Date(lo.getCreateTime()));
|
| | | }
|
| | | }
|
| | | }
|