| | |
| | | package com.lf.server.mapper.data; |
| | | |
| | | import com.lf.server.entity.ctrl.TabEntity; |
| | | import com.lf.server.entity.data.DomainEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | |
| | | /** |
| | | * 查询记录数 |
| | | * |
| | | * @param domName 值域表名 |
| | | * @param ns 名称空间 |
| | | * @param tab 表名 |
| | | * @param code 编码 |
| | | * @return 记录数 |
| | | */ |
| | | public Integer selectCount(String domName); |
| | | public Integer selectCount(String ns, String tab, String code); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param domName 值域表名 |
| | | * @param ns 名称空间 |
| | | * @param tab 表名 |
| | | * @param code 编码 |
| | | * @param limit 记录表 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |
| | | public List<DomainEntity> selectByPage(String domName, Integer limit, Integer offset); |
| | | public List<DomainEntity> selectByPage(String ns, String tab, String code, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 查询所有 |
| | |
| | | public DomainEntity selectById(int id); |
| | | |
| | | /** |
| | | * 查询值域表集合 |
| | | * @return |
| | | */ |
| | | public List<TabEntity> selectDomainTabs(); |
| | | |
| | | /** |
| | | * 插入一条 |
| | | * |
| | | * @param entity |