admin
2020-04-16 b5ca6a1d5b3bb8f61498cad99108b615e27b114c
分享订单到账消息
1个文件已修改
17 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderMoneySettleServiceImpl.java 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderMoneySettleServiceImpl.java
@@ -665,7 +665,6 @@
        List<Long> hbIdList = new ArrayList<>();
        Set<String> drawBackOrders = new HashSet<String>();
        List<Long> recieveHongBaoIds = new ArrayList<>();
        int shareGoodsCount = 0;
        Set<String> shareOrders = new HashSet<>();
        for (HongBaoV2 hongBao : hongBaoList) {
@@ -689,7 +688,6 @@
                HongBaoOrder hongBaoOrder = hongBaoOrderMapper.selectByHongBaoId(hongBao.getId());
                if (hongBaoOrder != null) {
                    balanceTime = hongBaoOrder.getCommonOrder().getSettleTime();
                    shareGoodsCount += hongBaoOrder.getCommonOrder().getCount();
                }
                shareOrders.add(hongBaoOrder.getCommonOrder().getOrderNo());
                if (balanceTime != null
@@ -724,9 +722,8 @@
            }
            // 新版通知
            userMoneyMsgNotificationService.shareOrderReceived(uid, Constant.SOURCE_TYPE_TAOBAO, shareOrders.size(),
                    shareGoodsCount, sharemoney, userInfoMapper.selectAvailableByPrimaryKey(uid).getMyHongBao(), null,
                    null);
            userMoneyMsgNotificationService.shareOrderReceived(uid, Constant.SOURCE_TYPE_TAOBAO, sharemoney,
                    userInfoMapper.selectAvailableByPrimaryKey(uid).getMyHongBao(), new Date());
            for (String orderId : drawBackOrders)
                taoBaoWeiQuanDrawBackService.doWeiQuanShare(orderId);
@@ -757,7 +754,6 @@
        BigDecimal sharemoney = new BigDecimal(0);
        List<Long> hbIdList = new ArrayList<>();
        List<Long> recieveHongBaoIds = new ArrayList<>();
        int shareGoodsCount = 0;
        Set<String> shareOrders = new HashSet<>();
        for (HongBaoV2 hongBao : hongBaoList) {
@@ -778,9 +774,6 @@
                hbIdList.add(hongBao.getId());
                // 2018-08-05 过后的订单才处理维权
                HongBaoOrder hongBaoOrder = hongBaoOrderMapper.selectByHongBaoId(hongBao.getId());
                if (hongBaoOrder != null) {
                    shareGoodsCount += hongBaoOrder.getCommonOrder().getCount();
                }
                shareOrders.add(hongBaoOrder.getCommonOrder().getOrderNo());
            }
        }
@@ -809,10 +802,8 @@
                }
            }
            // 新版通知
            userMoneyMsgNotificationService.shareOrderReceived(uid, Constant.SOURCE_TYPE_TAOBAO, shareOrders.size(),
                    shareGoodsCount, sharemoney, userInfoMapper.selectAvailableByPrimaryKey(uid).getMyHongBao(), null,
                    null);
            userMoneyMsgNotificationService.shareOrderReceived(uid, sourceType, sharemoney,
                    userInfoMapper.selectAvailableByPrimaryKey(uid).getMyHongBao(), new Date());
        }
        hongBaoV2SettleTempService.addTemp(recieveHongBaoIds, key);