| | |
| | | package com.lf.server.service.data; |
| | | |
| | | import com.lf.server.entity.ctrl.TabEntity; |
| | | import com.lf.server.entity.data.DictEntity; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.mapper.data.DictMapper; |
| | |
| | | @Override |
| | | public Integer selectCount(String ns, String tab) { |
| | | ns = StringHelper.isNull(ns) ? null : ns.trim(); |
| | | tab = StringHelper.getLikeStr(tab); |
| | | tab = StringHelper.getLikeUpperStr(tab); |
| | | |
| | | return dictMapper.selectCount(ns, tab); |
| | | } |
| | |
| | | @Override |
| | | public List<DictEntity> selectByPage(String ns, String tab, Integer limit, Integer offset) { |
| | | ns = StringHelper.isNull(ns) ? null : ns.trim(); |
| | | tab = StringHelper.getLikeStr(tab); |
| | | tab = StringHelper.getLikeUpperStr(tab); |
| | | |
| | | return dictMapper.selectByPage(ns, tab, limit, offset); |
| | | } |
| | | |
| | | @Override |
| | | public List<DictEntity> selectAll() { |
| | | return dictMapper.selectAll(); |
| | | public DictEntity selectById(int id) { |
| | | return dictMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public DictEntity selectById(int id) { |
| | | return dictMapper.selectById(id); |
| | | public List<TabEntity> selectDictTab(String name, String field) { |
| | | name = StringHelper.getLikeUpperStr(name); |
| | | |
| | | return dictMapper.selectDictTab(name, field); |
| | | } |
| | | |
| | | @Override |