管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-02 eb1af5f77f2c16e580173553e548ff4e41653e4e
src/main/java/com/lf/server/mapper/data/DictMapper.java
@@ -8,8 +8,7 @@
/**
 * 字典管理
 * @author sws
 * @date 2022-09-26
 * @author WWW
 */
@Mapper
@Repository
@@ -17,28 +16,45 @@
    /**
     * 查询记录数
     *
     * @param ns  表空间
     * @param tab 表名
     * @return 记录数
     */
    public Integer selectCount(String tab);
    public Integer selectCount(String ns, String tab);
    /**
     * 分页查询
     *
     * @param ns     表空间
     * @param tab    表名
     * @param limit  记录表
     * @param offset 偏移量
     * @return 列表
     */
    public List<DictEntity> selectByPage(String tab, Integer limit, Integer offset);
    public List<DictEntity> selectByPage(String ns, String tab, Integer limit, Integer offset);
    /**
     * 查询所有
     *
     * @return
     */
    public List<DictEntity> selectAll();
    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    public DictEntity selectById(int id);
    /**
     * 插入一条
     *
     * @param dictEntity
     * @param entity
     * @return
     */
    public Integer insertDict(DictEntity dictEntity);
    public Integer insert(DictEntity entity);
    /**
     * 插入多条
@@ -46,7 +62,7 @@
     * @param list
     * @return
     */
    public Integer insertDicts(List<DictEntity> list);
    public Integer inserts(List<DictEntity> list);
    /**
     * 删除一条
@@ -54,7 +70,7 @@
     * @param id
     * @return
     */
    public Integer deleteDict(int id);
    public Integer delete(int id);
    /**
     * 删除多条
@@ -62,35 +78,21 @@
     * @param ids
     * @return
     */
    public Integer deleteDicts(List<Integer> ids);
    public Integer deletes(List<Integer> ids);
    /**
     * 更新一条
     *
     * @param dictEntity
     * @param entity
     * @return
     */
    public Integer updateDict(DictEntity dictEntity);
    public Integer update(DictEntity entity);
    /**
     * 查询单条数据
     * 更新多条
     *
     * @param id
     * @param list
     * @return
     */
    public DictEntity selectDict(int id);
    /**
     * 查询所有
     *
     * @return
     */
    public List<DictEntity> selectDictAll();
    /**
     * 查询表格中文名
     *
     * @return
     */
    public List<DictEntity> selectDictTab();
    public Integer updates(List<DictEntity> list);
}