package com.vci.ubcs.omd.mapper;
|
|
import com.vci.ubcs.omd.entity.BtmTypeAttribute;
|
import com.vci.ubcs.omd.entity.BtmType;
|
import org.apache.ibatis.annotations.Param;
|
import org.springblade.core.mp.mapper.BladeMapper;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.Collection;
|
import java.util.List;
|
|
@Repository
|
public interface BtmTypeMapper extends BladeMapper<BtmType> {
|
/**
|
* 根据主键删除对象
|
* @param oid 生命周期主键
|
* @return 影响的行数
|
*/
|
int deleteByPrimaryKey(String oid);
|
|
/**
|
* 插入业务类型
|
* @param record 要添加的业务类型对象
|
* @return 影响的行数
|
*/
|
int insert(BtmType record);
|
|
/**
|
* 根据主键获取数据对象
|
* @param oid 主键
|
* @return 数据对象
|
*/
|
BtmType selectByPrimaryKey(String oid);
|
/**
|
* 根据主键批量获取对象
|
* @param oids 主键,包含单引号,但是不能超过1000
|
* @return 数据对象列表
|
*/
|
List<BtmType> selectByPrimaryKeys(String oids);
|
|
/**
|
* 根据主键批量查询对象
|
* @param oids 对象主键,使用逗号分隔,但是不能超过1000
|
* @return 业务对象
|
*/
|
List<BtmType> selectByPrimaryKeyCollection(@Param("oids") Collection<String> oids);
|
|
/**
|
* 根据英文名称批量查询对象
|
* @param ids 对象英文名称 但是不能超过1000
|
* @return 业务对象
|
*/
|
List<BtmType> selectByIdCollection(@Param("ids") Collection<String> ids);
|
|
/**
|
* 查询全部的业务类型
|
* @return 业务类型数据对象列表
|
*/
|
List<BtmType> selectAll();
|
|
/**
|
* 根据主键修改生命周期
|
* @param record 数据对象
|
* @return 影响的行数
|
*/
|
int updateByPrimaryKey(BtmType record);
|
|
/**
|
* 根据主键获取名称
|
* @param oid 主键
|
* @return 中文名称
|
*/
|
String selectNameByOid(String oid);
|
|
/**
|
* 根据英文名称获取中文名称
|
* @param id 英文名称
|
* @return 中文名称
|
*/
|
String selectNameById(String id);
|
|
/**
|
* 根据属性的主键获取使用的业务类型对象
|
* @param pkAttribute 属性的主键
|
* @return 业务类型对象
|
*/
|
List<BtmType> selectByAttributeOid(String pkAttribute);
|
|
/**
|
* 根据版本规则的主键获取使用的业务类型对象
|
* @param pkRevisionRule 版本规则的主键
|
* @return 业务类型对象
|
*/
|
List<BtmType> selectByRevisionRuleOid(String pkRevisionRule);
|
|
/**
|
* 根据生命周期的主键获取使用的业务类型对象
|
* @param pkLifeCycle 生命周期的主键
|
* @return 业务类型对象
|
*/
|
List<BtmType> selectByLifeCycleOid(String pkLifeCycle);
|
|
|
/**
|
* 根据主键批量删除对象
|
* @param oids 主键集合
|
* @return 影响的行数
|
*/
|
int batchDeleteByOids(@Param("oids") Collection<String> oids);
|
|
/**
|
* 批量添加
|
* @param records 批量的信息
|
* @return 执行总数
|
*/
|
Long batchInsert(@Param("records") List<BtmTypeAttribute> records);
|
|
}
|