| | |
| | | BlacklistMapper blacklistMapper; |
| | | |
| | | @Override |
| | | public Integer selectCount(String ip) { |
| | | ip = "%" + (StringHelper.isNull(ip) ? "" : ip.trim()) + "%"; |
| | | public Integer selectCount(String ip, Integer type) { |
| | | ip = StringHelper.isNull(ip) ? null : "%" + ip.trim() + "%"; |
| | | |
| | | return blacklistMapper.selectCount(ip); |
| | | return blacklistMapper.selectCount(ip, type); |
| | | } |
| | | |
| | | @Override |
| | | public List<BlacklistEntity> selectByPage(String ip, Integer limit, Integer offset) { |
| | | ip = "%" + (StringHelper.isNull(ip) ? "" : ip.trim()) + "%"; |
| | | public List<BlacklistEntity> selectByPage(String ip, Integer type, Integer limit, Integer offset) { |
| | | ip = StringHelper.isNull(ip) ? null : "%" + ip.trim() + "%"; |
| | | |
| | | return blacklistMapper.selectByPage(ip, limit, offset); |
| | | return blacklistMapper.selectByPage(ip, type, limit, offset); |
| | | } |
| | | |
| | | @Override |