admin
2019-11-11 08172b0a3938af612bce154fedf1a36d23743cb5
商城订单支付修改
1个文件已修改
27 ■■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopOrderPayServiceImpl.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopOrderPayServiceImpl.java
@@ -155,18 +155,6 @@
     * 支付成功
     */
    private void paySuccess(BanLiShopOrder order) {
        // 将红包明细外显
        RedPackDetail detail = null;
        try {
            detail = RedPackDetailFactory.createUseByShopOrder(order.getId(), order.getUid(), "", "",
                    order.getMoneyPayment());
        } catch (RedPackDetailException e) {
            e.printStackTrace();
        }
        if (detail != null) {
            redPackDetailService.changeDisplayByIdentifyCode(detail.getIdentifyCode(), true);
        }
    }
    @Transactional
@@ -330,6 +318,21 @@
        update.setSuccessTime(new Date());
        banLiShopOrderService.udpateSelectiveByPrimaryKey(update);
        if (order.getHongBaoPayment() != null && order.getHongBaoPayment().compareTo(new BigDecimal(0)) > 0) {
            // 将红包明细外显
            RedPackDetail detail = null;
            try {
                detail = RedPackDetailFactory.createUseByShopOrder(order.getId(), order.getUid(), "", "",
                        order.getHongBaoPayment());
            } catch (RedPackDetailException e) {
                e.printStackTrace();
            }
            if (detail != null) {
                redPackDetailService.changeDisplayByIdentifyCode(detail.getIdentifyCode(), true);
            }
        }
        try {
            if (Constant.IS_TEST) {
                FuLuChargeApiUtil.shaXiangCharge(set.getChargeFuLuNum(), "banlishop" + order.getOrderNo(),