| | |
| | | Long mainUid = null;
|
| | | // 统计返利的资金
|
| | | for (CommonOrder co : commonOrderList) {
|
| | | hongBaoOrder = hongBaoOrderService.selectDetailByCommonOrderId(co.getId());
|
| | | HongBaoOrder tempHongBaoOrder = hongBaoOrderService.selectDetailByCommonOrderId(co.getId());
|
| | | if (tempHongBaoOrder == null || tempHongBaoOrder.getHongBaoV2() == null)
|
| | | continue;
|
| | | hongBaoOrder = tempHongBaoOrder;
|
| | |
|
| | | mainUid = hongBaoOrder.getHongBaoV2().getUserInfo().getId();
|
| | | if (oldMoney.get(mainUid) == null)
|
| | | oldMoney.put(mainUid, new BigDecimal(0));
|
| | |
| | | @Transactional
|
| | | private void deleteByCommonOrderId(Long commonOrderId) {
|
| | | HongBaoOrder hongBaoOrder = hongBaoOrderService.selectDetailByCommonOrderId(commonOrderId);
|
| | | if (hongBaoOrder == null || hongBaoOrder.getHongBaoV2() == null)
|
| | | return;
|
| | | List<HongBaoV2> children = hongBaoV2Service.listChildrenById(hongBaoOrder.getHongBaoV2().getId());
|
| | | if (children != null)
|
| | | for (HongBaoV2 hongBao : children) {
|