weaver-hrm-salary/src/com/engine/salary/mapper/TaxRateBaseMapper.java

80 lines
1.6 KiB
Java
Raw Normal View History

2022-03-01 16:45:57 +08:00
package com.engine.salary.mapper;
import com.engine.salary.entity.taxrate.TaxRateBase;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
2022-07-06 17:36:30 +08:00
2022-03-01 16:45:57 +08:00
public interface TaxRateBaseMapper {
/**
* 查询所有记录
*
* @return 返回集合没有返回空List
*/
List<TaxRateBase> listAll();
/**
* 根据主键查询
*
* @param id 主键
* @return 返回记录没有返回null
*/
TaxRateBase getById(Long id);
/**
* 新增插入所有字段
*
* @param taxRateBase 新增的记录
* @return 返回影响行数
*/
int insert(TaxRateBase taxRateBase);
/**
* 新增忽略null字段
*
* @param taxRateBase 新增的记录
* @return 返回影响行数
*/
int insertIgnoreNull(TaxRateBase taxRateBase);
/**
* 修改修改所有字段
*
* @param taxRateBase 修改的记录
* @return 返回影响行数
*/
int update(TaxRateBase taxRateBase);
/**
* 修改忽略null字段
*
* @param taxRateBase 修改的记录
* @return 返回影响行数
*/
int updateIgnoreNull(TaxRateBase taxRateBase);
/**
* 删除记录
*
* @param taxRateBase 待删除的记录
* @return 返回影响行数
*/
int delete(TaxRateBase taxRateBase);
List<TaxRateBase> selectByIds(@Param("ids") Collection<Long> ids);
/**
* 条件查询
* @return
*/
List<TaxRateBase> listBySome(@Param("param") TaxRateBase param);
void deleteByIds(@Param("ids") Collection<Long> ids);
}