87 lines
2.1 KiB
Java
87 lines
2.1 KiB
Java
package com.engine.salary.mapper.datacollection;
|
||
|
||
import com.engine.salary.entity.datacollection.dto.OtherDeductionListDTO;
|
||
import com.engine.salary.entity.datacollection.dto.OtherDeductionRecordDTO;
|
||
import com.engine.salary.entity.datacollection.param.OtherDeductionQueryParam;
|
||
import com.engine.salary.entity.datacollection.po.OtherDeductionPO;
|
||
import org.apache.ibatis.annotations.Mapper;
|
||
import org.apache.ibatis.annotations.Param;
|
||
|
||
import java.util.List;
|
||
|
||
@Mapper
|
||
public interface OtherDeductionMapper {
|
||
|
||
/**
|
||
* 查询所有记录
|
||
*
|
||
* @return 返回集合,没有返回空List
|
||
*/
|
||
List<OtherDeductionPO> listAll();
|
||
|
||
|
||
/**
|
||
* 根据主键查询
|
||
*
|
||
* @param id 主键
|
||
* @return 返回记录,没有返回null
|
||
*/
|
||
OtherDeductionPO getById(Long id);
|
||
|
||
/**
|
||
* 新增,忽略null字段
|
||
*
|
||
* @param OtherDeductionPO 新增的记录
|
||
* @return 返回影响行数
|
||
*/
|
||
int insertIgnoreNull(OtherDeductionPO OtherDeductionPO);
|
||
|
||
/**
|
||
* 修改,修改所有字段
|
||
*
|
||
* @param OtherDeductionPO 修改的记录
|
||
* @return 返回影响行数
|
||
*/
|
||
int update(OtherDeductionPO OtherDeductionPO);
|
||
|
||
/**
|
||
* 修改,忽略null字段
|
||
*
|
||
* @param OtherDeductionPO 修改的记录
|
||
* @return 返回影响行数
|
||
*/
|
||
int updateIgnoreNull(OtherDeductionPO OtherDeductionPO);
|
||
|
||
/**
|
||
* 删除记录
|
||
*
|
||
* @param OtherDeductionPO 待删除的记录
|
||
* @return 返回影响行数
|
||
*/
|
||
int delete(OtherDeductionPO OtherDeductionPO);
|
||
|
||
/**
|
||
* 查询数据采集-其他免税扣除列表
|
||
* @param param
|
||
* @return
|
||
*/
|
||
List<OtherDeductionListDTO> list(@Param("param") OtherDeductionQueryParam param);
|
||
|
||
|
||
List<OtherDeductionRecordDTO> recordList(@Param("param") OtherDeductionQueryParam param);
|
||
|
||
List<OtherDeductionPO> listSome(@Param("param") OtherDeductionPO param);
|
||
|
||
/**
|
||
* 批量插入
|
||
* @param pos
|
||
*/
|
||
void insertData(@Param("collection") List<OtherDeductionPO> pos);
|
||
|
||
/**
|
||
* 批量修改
|
||
* @param pos
|
||
*/
|
||
void updateData(@Param("collection") List<OtherDeductionPO> pos);
|
||
|
||
} |