yujian
2020-05-09 7e7db2fa55a9a3af46d4fd8ede0dee147f101d64
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java
@@ -952,6 +952,7 @@
      }
      BigDecimal hongBao = orderVO.getHongBao();
      // 红包状态
      Integer hongBaoState = orderVO.getHongBaoState();
      // 红包类型
@@ -964,6 +965,11 @@
         if (order == null)
            throw new UserSystemCouponException(1, "该订单不存在");
         // 使用奖励券 金额额限制
         if (hongBao.compareTo(Constant.REWARD_COUPON_LIMIT_MONEY) > 0){
            throw new UserSystemCouponException(1, "该订单不能使用奖励券");
         }
         /* 奖金计算 以及相关红包信息处理 */
         // 转换成小数点
@@ -1564,7 +1570,7 @@
      if (couponType == CouponTypeEnum.freeCoupon.name()) {
         stateActivated = 0; //
      } else if (couponType == CouponTypeEnum.welfareFreeCoupon.name()
            && threeSaleSerivce.countSuccessFirstTeam(uid) <= 0) {
            && threeSaleSerivce.countFirstTeam(uid) <= 0) {
         stateActivated = 0; // 无下级队员 --待激活
      }