| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.vci.ubcs.code.entity.CodeReferConfig; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.data.domain.Pageable; |
| | |
| | | * @author makejava |
| | | * @since 2023-05-19 17:47:51 |
| | | */ |
| | | public interface CodeReferConfigMapper { |
| | | public interface CodeReferConfigMapper extends BaseMapper<CodeReferConfig> { |
| | | |
| | | /** |
| | | * 通过ID查询单条数据 |
| | |
| | | /** |
| | | * 查询指定行数据 |
| | | * |
| | | * @param plCodeReferconfig 查询条件 |
| | | * @param codeReferConfig 查询条件 |
| | | * @param pageable 分页对象 |
| | | * @return 对象列表 |
| | | */ |
| | | List<CodeReferConfig> queryAllByLimit(CodeReferConfig plCodeReferconfig, @Param("pageable") Pageable pageable); |
| | | |
| | | /** |
| | | * 统计总行数 |
| | | * |
| | | * @param plCodeReferconfig 查询条件 |
| | | * @return 总行数 |
| | | */ |
| | | long count(CodeReferConfig plCodeReferconfig); |
| | | |
| | | /** |
| | | * 新增数据 |
| | | * |
| | | * @param plCodeReferconfig 实例对象 |
| | | * @return 影响行数 |
| | | */ |
| | | int insert(CodeReferConfig plCodeReferconfig); |
| | | |
| | | /** |
| | | * 批量新增数据(MyBatis原生foreach方法) |
| | | * |
| | | * @param entities List<CodeReferConfig> 实例对象列表 |
| | | * @return 影响行数 |
| | | */ |
| | | int insertBatch(@Param("entities") List<CodeReferConfig> entities); |
| | | |
| | | /** |
| | | * 批量新增或按主键更新数据(MyBatis原生foreach方法) |
| | | * |
| | | * @param entities List<CodeReferConfig> 实例对象列表 |
| | | * @return 影响行数 |
| | | * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 |
| | | */ |
| | | int insertOrUpdateBatch(@Param("entities") List<CodeReferConfig> entities); |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * |
| | | * @param plCodeReferconfig 实例对象 |
| | | * @return 影响行数 |
| | | */ |
| | | int update(CodeReferConfig plCodeReferconfig); |
| | | |
| | | /** |
| | | * 通过主键删除数据 |
| | | * |
| | | * @param oid 主键 |
| | | * @return 影响行数 |
| | | */ |
| | | int deleteById(String oid); |
| | | List<CodeReferConfig> queryAllByPage(CodeReferConfig codeReferConfig, @Param("pageable") Pageable pageable); |
| | | |
| | | } |
| | | |