yujian
2019-09-12 0622fc9c8a464a1260ebca4071a2cad9c83a5a9a
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java
@@ -667,6 +667,23 @@
   }
   
   
   @Override
   public long countUsableRewardCoupon (Long uid) {
      if (uid == null)
         return 0;
      List<SystemCoupon> couponList = systemCouponService.getOrderCouponList();
      if (couponList == null || couponList.size() == 0)
         return 0;
      List<Long> listCouponId = new ArrayList<Long>();
      for (SystemCoupon systemCoupon : couponList) {
         listCouponId.add(systemCoupon.getId());
      }
      return userSystemCouponMapper.countUsableByUid(uid, listCouponId);
   }
   
   @Transactional
   @Override
@@ -1752,6 +1769,7 @@
               // 订单列表
               jumpLink.put("state", "2"); // 已收货
               jumpLink.put("stats", false); // 不显示上方统计信息
               jumpLink.put("type", "1");  // 返利订单
               jumpLink.put("title", "返利订单"); // 标题名
               jumpLink.put("goodsType", "0"); // 订单来源
@@ -1773,7 +1791,7 @@
            
            if (CouponTypeEnum.rebatePercentCoupon == type) {
               userCouponVO.setState(UserSystemCoupon.STATE_GIVE_IN);
               tips = configService.get("give_free_coupon_tips");
               tips = configService.get("give_rebate_percent_coupon_tips");
               tokenType = TokenTypeEnum.rebatePercentCoupon;
            }
            
@@ -2399,4 +2417,10 @@
      return listCoupon;
   }
   @Override
   public List<UserSystemCoupon> getFreeCouponByType(Long uid, String type) {
      return userSystemCouponMapper.getFreeCouponByType(uid, type);
   }
}