| | |
| | | import com.yeshi.fanli.service.inter.goods.TaoBaoCouponService;
|
| | | import com.yeshi.fanli.service.inter.taobao.TaoBaoUnionConfigService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.RedisKeyEnum;
|
| | | import com.yeshi.fanli.util.RedisManager;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | | import com.yeshi.fanli.util.taobao.TaoBaoCouponUtil;
|
| | |
| | | @Override
|
| | | public List<TaoBaoCoupon> getTaoBaoCouponListBykeys(List<String> searchKeys, int page) {
|
| | |
|
| | | if (searchKeys == null || searchKeys.size() == 0) {
|
| | | searchKeys = new ArrayList<String>();
|
| | | searchKeys.add("");
|
| | | if (searchKeys != null && searchKeys.size() == 0) {
|
| | | searchKeys = null;
|
| | | }
|
| | |
|
| | | return taoBaoCouponMapper.getTaoBaoCouponListBykeys((page - 1) * Constant.PAGE_SIZE, Constant.PAGE_SIZE,searchKeys);
|
| | |
| | |
|
| | | @Override
|
| | | public int getCount(List<String> searchKeys) {
|
| | | if (searchKeys == null || searchKeys.size() == 0) {
|
| | | searchKeys = new ArrayList<String>();
|
| | | searchKeys.add("");
|
| | | if (searchKeys != null && searchKeys.size() == 0) {
|
| | | searchKeys = null;
|
| | | }
|
| | | |
| | | return taoBaoCouponMapper.countTaoBaoCouponListBykeys(searchKeys);
|
| | | }
|
| | |
|
| | |
| | | @Override
|
| | | public List<TaoBaoGoodsBrief> getTaoBaoCouponList(int page) {
|
| | | System.out.println("进入了方法");
|
| | | String key = "cachecoupon-" + page;
|
| | | String key = RedisKeyEnum.getRedisKey(RedisKeyEnum.taobaoCachecoupon, page +"");
|
| | | String resultStr = "";
|
| | | try {
|
| | | resultStr = redisManager.getCommonString(key);
|