admin
2020-11-28 dc5be7d38446f70e6ff86df311119c32b41fe7f8
fanli/src/main/java/com/yeshi/fanli/service/impl/money/tb/TaoBaoWeiQuanDrawBackServiceImpl.java
@@ -217,7 +217,7 @@
         // 退款金额
         BigDecimal drawBackMoney = computeDrawBackMoney(settleMent, wqMoney, userGetMoney);
         userSubMoneyMap.put(uid, drawBackMoney);
         if (subMoneySync) {
         if (subMoneySync) {//同步减去资金
            // 计算资金是否充足
            UserInfo user = userInfoMapper.selectByPrimaryKey(uid);
            if (user != null && user.getMyHongBao().compareTo(drawBackMoney) < 0)// 资金不足
@@ -517,7 +517,7 @@
            settleMent = settleMent.add(taoBaoOrder.getSettlement());
         }
         // 查询下级子用户
         CommonOrder commonOrder = commonOrderMapper.selectBySourceTypeAndTradeId(Constant.SOURCE_TYPE_TAOBAO,
               weiQuanOrder.getOrderItemId());
         if (commonOrder == null)
@@ -528,6 +528,7 @@
         if (hongbaoOrder == null || hongbaoOrder.getHongBaoV2() == null)
            throw new TaoBaoWeiQuanException(3, "红包有误");
         // 查询下级子用户
         List<HongBaoV2> childList = hongBaoV2Mapper.listChildrenById(hongbaoOrder.getHongBaoV2().getId());
         if (childList != null)