2022-03-02 09:54:55 +08:00
|
|
|
package com.engine.salary.mapper.taxdeclaration;
|
|
|
|
|
|
2022-06-10 13:33:48 +08:00
|
|
|
import com.engine.salary.entity.taxdeclaration.dto.TaxDeclarationEmployeeDTO;
|
2022-04-16 15:33:51 +08:00
|
|
|
import com.engine.salary.entity.taxdeclaration.po.TaxDeclarationDetailPO;
|
2022-03-02 09:54:55 +08:00
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
2022-04-16 15:33:51 +08:00
|
|
|
import org.apache.ibatis.annotations.Param;
|
2022-03-02 09:54:55 +08:00
|
|
|
|
2022-04-16 15:33:51 +08:00
|
|
|
import java.util.Collection;
|
2022-03-02 09:54:55 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2022-07-06 17:36:30 +08:00
|
|
|
|
2022-03-02 09:54:55 +08:00
|
|
|
public interface TaxDeclarationDetailMapper {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-06-10 13:33:48 +08:00
|
|
|
* 分页查询人员id
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclarationId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<TaxDeclarationEmployeeDTO> listPage4EmployeeId(@Param("taxDeclarationId") Long taxDeclarationId);
|
|
|
|
|
|
2022-03-02 09:54:55 +08:00
|
|
|
/**
|
2022-06-10 13:33:48 +08:00
|
|
|
* 查询人员id
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclarationId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<TaxDeclarationEmployeeDTO> list4EmployeeId(@Param("taxDeclarationId") Long taxDeclarationId);
|
|
|
|
|
|
2022-04-16 15:33:51 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量插入
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclarationDetails
|
|
|
|
|
*/
|
|
|
|
|
void batchInsert(@Param("collection") Collection<TaxDeclarationDetailPO> taxDeclarationDetails);
|
2022-04-18 18:56:17 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 统计一共多少人员
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclarationId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
int countEmployeeId(@Param("taxDeclarationId") Long taxDeclarationId);
|
|
|
|
|
/**
|
|
|
|
|
* 分页查询人员id
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclarationId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2022-04-19 20:58:30 +08:00
|
|
|
List<Long> listEmployeeId(@Param("taxDeclarationId") Long taxDeclarationId);
|
2022-06-10 13:33:48 +08:00
|
|
|
|
2022-04-18 18:56:17 +08:00
|
|
|
/**
|
|
|
|
|
* 查询个税申报表明细
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclarationId
|
|
|
|
|
* @param employeeIds
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2022-06-10 13:33:48 +08:00
|
|
|
List<TaxDeclarationDetailPO> listByTaxDeclarationIdAndEmployeeIds(@Param("taxDeclarationId") Long taxDeclarationId, @Param("collection") Collection<Long> employeeIds);
|
2022-05-09 11:46:49 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据个税申报表id删除
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclarationIds
|
|
|
|
|
*/
|
|
|
|
|
void deleteByTaxDeclarationIds(@Param("taxDeclarationIds") Collection<Long> taxDeclarationIds);
|
2022-03-02 09:54:55 +08:00
|
|
|
}
|