admin
2019-08-27 fe879975a3e8a0a1aa280fb839e02d159bfbcff8
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponServiceImpl.java
@@ -2140,17 +2140,27 @@
   }
   
   
//   @Override
//   public boolean countIncludeExchange(Long uid) {
//
//
//   }
//
//
//   @Override
//   public boolean countNotIncludeExchange(Long uid) {
//
//
//   }
   @Override
   public boolean getIncludeExchange(Long uid) {
      List<String> list = new ArrayList<String>();
      list.add(UserSystemCoupon.SOURCE_EXCHANGE);
      list.add(UserSystemCoupon.SOURCE_GIVE);
      List<UserSystemCoupon> listCoupon = userSystemCouponMapper.getIncludeExchange(uid, list);
      if (listCoupon == null || listCoupon.size() == 0)
         return false;
      return true;
   }
   @Override
   public boolean getIncludeNotExchange(Long uid) {
      List<String> list = new ArrayList<String>();
      list.add(UserSystemCoupon.SOURCE_EXCHANGE);
      list.add(UserSystemCoupon.SOURCE_GIVE);
      List<UserSystemCoupon> listCoupon = userSystemCouponMapper.getIncludeNotExchange(uid, list);
      if (listCoupon == null || listCoupon.size() == 0)
         return false;
      return true;
   }
}