123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- package com.huaxu.dao;
- import com.baomidou.mybatisplus.core.metadata.IPage;
- import com.huaxu.dto.DictDto;
- import com.huaxu.entity.Dict;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Param;
- import java.util.List;
- /**
- * 数据字典(Dict)表数据库访问层
- *
- * @author yjy
- * @since 2020-10-26
- */
- @Mapper
- public interface DictMapper {
- /**
- * 通过ID查询单条数据
- *
- * @param id 主键
- * @return 实例对象
- */
- Dict selectById(Integer id);
- /**
- * 查询全部
- *
- * @return 对象列表
- */
- List<Dict> selectAll();
- /**
- * 通过实体作为筛选条件查询
- *
- * @param dict 实例对象
- * @return 对象列表
- */
- List<Dict> selectList(Dict dict);
- /**
- * 新增数据
- *
- * @param dict 实例对象
- * @return 影响行数
- */
- int insert(Dict dict);
- /**
- * 批量新增
- *
- * @param dicts 实例对象的集合
- * @return 影响行数
- */
- int batchInsert(List<Dict> dicts);
- /**
- * 修改数据
- *
- * @param dict 实例对象
- * @return 影响行数
- */
- int update(Dict dict);
- /**
- * 通过主键删除数据
- *
- * @param ids 主键
- * @return 影响行数
- */
- int deleteById(@Param("ids") Long[] ids);
- /**
- * 查询总数据数
- *
- * @return 数据总数
- */
- int count();
- IPage<Dict> selectPage(IPage<Dict> page, Dict dict);
- /**
- * 字典编码和父配置ID数量
- *
- * @return 数据总数
- */
- int countByCodePid(Dict dict);
- /**
- * 查询父列表
- *
- * @param dict 实例对象
- * @return 对象列表
- */
- List<DictDto> selectParentList(Dict dict);
- }
|