2022-03-10 17:57:46 +08:00
|
|
|
|
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.Param;
|
|
|
|
|
|
|
2025-03-05 15:06:01 +08:00
|
|
|
|
import java.util.Date;
|
2022-03-10 17:57:46 +08:00
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
2022-07-06 17:36:30 +08:00
|
|
|
|
|
2022-03-10 17:57:46 +08:00
|
|
|
|
public interface OtherDeductionMapper {
|
|
|
|
|
|
|
2024-12-25 16:28:21 +08:00
|
|
|
|
/**
|
2022-03-10 17:57:46 +08:00
|
|
|
|
* 根据主键查询
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param id 主键
|
|
|
|
|
|
* @return 返回记录,没有返回null
|
|
|
|
|
|
*/
|
2024-12-25 16:28:21 +08:00
|
|
|
|
OtherDeductionPO getById(Long id);
|
2022-06-22 10:58:18 +08:00
|
|
|
|
|
2022-03-10 17:57:46 +08:00
|
|
|
|
|
2024-12-25 16:28:21 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 查询数据采集-其他免税扣除列表
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param param
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
List<OtherDeductionListDTO> list(@Param("param") OtherDeductionQueryParam param);
|
2022-03-10 17:57:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
2024-12-25 16:28:21 +08:00
|
|
|
|
List<OtherDeductionRecordDTO> recordList(@Param("param") OtherDeductionQueryParam param);
|
2022-03-10 17:57:46 +08:00
|
|
|
|
|
2024-12-25 16:28:21 +08:00
|
|
|
|
List<OtherDeductionPO> listSome(@Param("param") OtherDeductionPO param);
|
2022-03-10 17:57:46 +08:00
|
|
|
|
|
2024-12-25 16:28:21 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 批量插入
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param pos
|
|
|
|
|
|
*/
|
|
|
|
|
|
void insertData(@Param("collection") List<OtherDeductionPO> pos);
|
2022-03-10 17:57:46 +08:00
|
|
|
|
|
2024-12-25 16:28:21 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 批量修改
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param pos
|
|
|
|
|
|
*/
|
|
|
|
|
|
void updateData(@Param("collection") List<OtherDeductionPO> pos);
|
2022-03-10 17:57:46 +08:00
|
|
|
|
|
2024-12-25 16:28:21 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 新增,忽略null字段
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param otherDeduction 新增的记录
|
|
|
|
|
|
* @return 返回影响行数
|
|
|
|
|
|
*/
|
|
|
|
|
|
int insertIgnoreNull(OtherDeductionPO otherDeduction);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 批量删除
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param longs
|
|
|
|
|
|
*/
|
2022-10-27 18:02:05 +08:00
|
|
|
|
void deleteData(List<Long> longs);
|
2024-12-25 16:28:21 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 删除记录
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param otherDeduction 待删除的记录
|
|
|
|
|
|
* @return 返回影响行数
|
|
|
|
|
|
*/
|
|
|
|
|
|
int delete(OtherDeductionPO otherDeduction);
|
|
|
|
|
|
|
2025-03-05 15:06:01 +08:00
|
|
|
|
OtherDeductionPO getByTaxAgentIdAndEmployeeIdAndDeclareMonth(@Param("taxAgentId") Long taxAgentId, @Param("employeeId") Long employeeId, @Param("declareMonth") Date declareMonth);
|
2025-07-02 20:02:05 +08:00
|
|
|
|
|
|
|
|
|
|
List<OtherDeductionPO> listDetails(@Param("param") OtherDeductionPO param);
|
2022-03-10 17:57:46 +08:00
|
|
|
|
}
|