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