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