| | |
| | | package com.vci.ubcs.code.mapper; |
| | | |
| | | import com.vci.starter.web.pagemodel.PageHelper; |
| | | import com.vci.starter.web.wrapper.VciQueryWrapperForDO; |
| | | import com.vci.ubcs.code.entity.CodeRuleDO; |
| | | import com.vci.web.pageModel.BatchCBO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.code.entity.CodeRule; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 主数据编码规则数据操作层 |
| | | * |
| | | * @author weidy |
| | | * @author ludc |
| | | * @date 2022-01-24 |
| | | */ |
| | | public interface CodeRuleMapper { |
| | | public interface CodeRuleMapper extends BaseMapper<CodeRule> { |
| | | |
| | | |
| | | /** |
| | | * 使用主键删除 |
| | | * @param oid 数据主键 |
| | | * @return 执行结果 |
| | | */ |
| | | BatchCBO deleteByPrimaryKey(String oid); |
| | | |
| | | /** |
| | | * 添加数据 |
| | | * @param record 主数据编码规则数据对象 |
| | | * @return 执行结果 |
| | | */ |
| | | BatchCBO insert(CodeRuleDO record); |
| | | |
| | | /** |
| | | * 批量添加数据 |
| | | * @param records 主数据编码规则数据对象集合 |
| | | * @return 执行结果数 |
| | | */ |
| | | BatchCBO batchInsert(List<CodeRuleDO> records); |
| | | |
| | | /** |
| | | * 根据主键查询 |
| | | * @param oid 数据主键 |
| | | * @return 数据对象 |
| | | */ |
| | | CodeRuleDO selectByPrimaryKey(String oid); |
| | | |
| | | /** |
| | | * 根据主键批量获取对象 |
| | | * @param oids 主键,包含单引号,但是不能超过1000 |
| | | * @return 数据对象列表 |
| | | */ |
| | | List<CodeRuleDO> selectByPrimaryKeys(String oids); |
| | | |
| | | /** |
| | | * 根据主键批量查询对象 |
| | | * @param oids 对象主键,使用逗号分隔,但是不能超过1000 |
| | | * @return 业务对象 |
| | | */ |
| | | List<CodeRuleDO> selectByPrimaryKeyCollection(Collection<String> oids); |
| | | |
| | | /** |
| | | * 使用编号集合批量查询对象 |
| | | * @param ids 编号的集合 |
| | | * @return 业务对象 |
| | | * 自定义分页 |
| | | * |
| | | * @param page |
| | | * @param codeRule |
| | | * @return |
| | | */ |
| | | List<CodeRuleDO> selectByIdCollection(Collection<String> ids); |
| | | List<CodeRule> selectCodeRulePage(IPage page,@Param("codeRule") CodeRuleVO codeRule); |
| | | |
| | | /** |
| | | * 查询所有分类 |
| | | * @return 查询结果 |
| | | */ |
| | | List<CodeRuleDO> selectAll(); |
| | | |
| | | /** |
| | | * 更新对象 |
| | | * @param record 主数据编码规则数据对象 |
| | | * @return 执行结果 |
| | | */ |
| | | BatchCBO updateByPrimaryKey(CodeRuleDO record); |
| | | |
| | | /** |
| | | * 批量更新 |
| | | * @param records 主数据编码规则数据对象集合 |
| | | * @return 执行结果行数 |
| | | */ |
| | | BatchCBO batchUpdate(List<CodeRuleDO> records); |
| | | |
| | | /** |
| | | * 根据查询条件查询数据 |
| | | * @param conditionMap 查询条件, |
| | | * @param pageHelper 包括分页,排序 |
| | | * @return 数据对象列表 |
| | | */ |
| | | List<CodeRuleDO> selectByCondition(Map<String,String> conditionMap, PageHelper pageHelper); |
| | | |
| | | /** |
| | | * 根据查询条件来查询总数 |
| | | * @param conditionMap 查询条件 |
| | | * @return 总数 |
| | | */ |
| | | Long countByCondition(Map<String,String> conditionMap); |
| | | |
| | | /** |
| | | * 使用查询封装器来查询 |
| | | * @param queryWrapper 查询封装器 |
| | | * @return 数据对象列表 |
| | | */ |
| | | List<CodeRuleDO> selectByWrapper(VciQueryWrapperForDO queryWrapper); |
| | | |
| | | /** |
| | | * 根据查询封装器来查询总数 |
| | | * @param queryWrapper 查询封装器 |
| | | * @return 总数 |
| | | */ |
| | | Long countByWrapper(VciQueryWrapperForDO queryWrapper); |
| | | |
| | | /** |
| | | * 根据主键获取名称 |
| | | * @param oid 主键 |
| | | * @return 中文名称 |
| | | */ |
| | | String selectNameByOid(String oid); |
| | | |
| | | |
| | | /** |
| | | * 批量修改生命周期的状态 |
| | | * @param oids 主键集合,不能大于1000 |
| | | * @param lcStatus 生命周期的值 |
| | | * @return 执行的结果 |
| | | */ |
| | | long batchUpdateLcStatus(Collection<String> oids, String lcStatus); |
| | | /** |
| | | * 根据主键更新状态 |
| | | * @param oid 主键 |
| | | * @param lcStatus 生命周期状态 |
| | | * @return 受影响的行数 |
| | | */ |
| | | int updateLcStatus( String oid, String lcStatus); |
| | | |
| | | /** |
| | | * 批量删除对象 |
| | | * @param oids 对象的主键集合 |
| | | * @return 受影响的行数 |
| | | */ |
| | | BatchCBO batchDeleteByOids(Collection<String> oids); |
| | | |
| | | /** |
| | | * 删除数据不进行持久化,转化为batchCBO |
| | | * @param codeRule 编码规则对象 |
| | | * @return 受影响的行数 |
| | | */ |
| | | BatchCBO delete4BatchCBO (CodeRuleDO codeRule); |
| | | |
| | | } |