管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2024-12-18 0c8cd957630d43aa71183d34ecb1faf60689f8a4
src/main/java/com/lf/server/mapper/data/DictMapper.java
@@ -1,5 +1,6 @@
package com.lf.server.mapper.data;
import com.lf.server.entity.ctrl.TabEntity;
import com.lf.server.entity.data.DictEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -8,8 +9,7 @@
/**
 * 字典管理
 * @author sws
 * @date 2022-09-26
 * @author WWW
 */
@Mapper
@Repository
@@ -17,28 +17,47 @@
    /**
     * 查询记录数
     *
     * @param ns  表空间
     * @param tab 表名
     * @return 记录数
     */
    public Integer selectCount(String tab);
    public Integer selectCount(String ns, String tab);
    /**
     * 分页查询
     *
     * @param ns     表空间
     * @param tab    表名
     * @param limit  记录表
     * @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);
    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    public DictEntity selectById(int id);
    /**
     * 查询字典表结构
     *
     * @param name
     * @param field
     * @return
     */
    public List<TabEntity> selectDictTab(String name, String field);
    /**
     * 插入一条
     *
     * @param dictEntity
     * @param entity
     * @return
     */
    public Integer insertDict(DictEntity dictEntity);
    public Integer insert(DictEntity entity);
    /**
     * 插入多条
@@ -46,7 +65,7 @@
     * @param list
     * @return
     */
    public Integer insertDicts(List<DictEntity> list);
    public Integer inserts(List<DictEntity> list);
    /**
     * 删除一条
@@ -54,7 +73,7 @@
     * @param id
     * @return
     */
    public Integer deleteDict(int id);
    public Integer delete(int id);
    /**
     * 删除多条
@@ -62,35 +81,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);
}