From 392dafd6475f8dcf02e6334f2d92f01f246fcbb2 Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期四, 21 三月 2019 11:44:45 +0800 Subject: [PATCH] 分享主页 bug修改 --- fanli/src/main/java/com/yeshi/fanli/service/impl/goods/TaoBaoCouponServiceImpl.java | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/TaoBaoCouponServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/TaoBaoCouponServiceImpl.java index 99273e1..28ebde3 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/TaoBaoCouponServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/TaoBaoCouponServiceImpl.java @@ -86,9 +86,8 @@ @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); @@ -96,11 +95,9 @@ @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); } -- Gitblit v1.8.0