| | |
| | | @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);
|
| | | }
|
| | |
|