管道基础大数据平台系统开发-【后端】-Server
1
sws
2022-11-26 ab849f796bdc17236a95ea5fe5c166fb8f24a75c
src/main/java/com/lf/server/mapper/data/DictMapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,107 @@
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;
import java.util.List;
/**
 * å­—典管理
 * @author WWW
 */
@Mapper
@Repository
public interface DictMapper {
    /**
     * æŸ¥è¯¢è®°å½•æ•°
     *
     * @param ns  è¡¨ç©ºé—´
     * @param tab è¡¨å
     * @return è®°å½•æ•°
     */
    public Integer selectCount(String ns, String tab);
    /**
     * åˆ†é¡µæŸ¥è¯¢
     *
     * @param ns     è¡¨ç©ºé—´
     * @param tab    è¡¨å
     * @param limit  è®°å½•表
     * @param offset åç§»é‡
     * @return åˆ—表
     */
    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 name
     * @return
     */
    public List<TabEntity> selectDictTab(String name);
    /**
     * æ’入一条
     *
     * @param entity
     * @return
     */
    public Integer insert(DictEntity entity);
    /**
     * æ’入多条
     *
     * @param list
     * @return
     */
    public Integer inserts(List<DictEntity> list);
    /**
     * åˆ é™¤ä¸€æ¡
     *
     * @param id
     * @return
     */
    public Integer delete(int id);
    /**
     * åˆ é™¤å¤šæ¡
     *
     * @param ids
     * @return
     */
    public Integer deletes(List<Integer> ids);
    /**
     * æ›´æ–°ä¸€æ¡
     *
     * @param entity
     * @return
     */
    public Integer update(DictEntity entity);
    /**
     * æ›´æ–°å¤šæ¡
     *
     * @param list
     * @return
     */
    public Integer updates(List<DictEntity> list);
}