2022-03-16 17:04:21 +08:00
|
|
|
package com.engine.salary.mapper.siarchives;
|
2022-03-15 17:39:19 +08:00
|
|
|
|
2022-10-26 18:51:36 +08:00
|
|
|
import com.engine.salary.entity.siarchives.po.InsuranceArchivesEmployeePO;
|
2022-03-15 17:39:19 +08:00
|
|
|
import com.engine.salary.entity.siarchives.po.InsuranceArchivesOtherSchemePO;
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
2022-03-17 15:26:33 +08:00
|
|
|
import java.util.Collection;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
2022-03-15 17:39:19 +08:00
|
|
|
/**
|
|
|
|
|
* @Author weaver_cl
|
2022-07-13 11:45:16 +08:00
|
|
|
*
|
2022-03-15 17:39:19 +08:00
|
|
|
* @Date 2022/3/15
|
|
|
|
|
* @Version V1.0
|
|
|
|
|
**/
|
|
|
|
|
public interface OtherSchemeMapper {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据员工id获取
|
|
|
|
|
* @param employeeId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2022-03-18 18:00:51 +08:00
|
|
|
List<InsuranceArchivesOtherSchemePO> getOtherByEmployeeId(@Param("employeeIds")List<Long> employeeId);
|
2022-03-17 15:26:33 +08:00
|
|
|
|
2022-10-26 18:51:36 +08:00
|
|
|
/**
|
|
|
|
|
* 根据人员id和个税扣缴人id获取记录
|
|
|
|
|
* @param insuranceArchivesEmployeePO
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<InsuranceArchivesOtherSchemePO> getOtherByEmployeeIdAndPayOrg(@Param("param") InsuranceArchivesEmployeePO insuranceArchivesEmployeePO);
|
|
|
|
|
|
2022-10-14 14:31:09 +08:00
|
|
|
/**
|
|
|
|
|
* 根据id获取
|
|
|
|
|
* @param ids
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<InsuranceArchivesOtherSchemePO> getOtherById(@Param("ids")List<Long> ids);
|
|
|
|
|
|
2022-03-17 15:26:33 +08:00
|
|
|
/**
|
|
|
|
|
* 批量删除
|
|
|
|
|
* @param singletonList
|
|
|
|
|
*/
|
|
|
|
|
void batchDeleteByEmployeeIds(@Param("employeeIds") Collection<Long> singletonList);
|
|
|
|
|
|
2022-10-26 15:08:17 +08:00
|
|
|
/**
|
|
|
|
|
* 根据人员id和个税扣缴义务人删除档案
|
|
|
|
|
* @param insuranceArchivesOtherSchemePO
|
|
|
|
|
*/
|
|
|
|
|
void deleteByEmployeeIdAndPayOrg(@Param("param") InsuranceArchivesOtherSchemePO insuranceArchivesOtherSchemePO);
|
2022-03-17 15:26:33 +08:00
|
|
|
/**
|
|
|
|
|
* 批量保存
|
|
|
|
|
* @param singletonList
|
|
|
|
|
*/
|
|
|
|
|
void batchSave(@Param("otherSchemePOS") List<InsuranceArchivesOtherSchemePO> singletonList);
|
|
|
|
|
|
2022-10-10 09:43:57 +08:00
|
|
|
List<InsuranceArchivesOtherSchemePO> listAll();
|
2022-03-17 15:26:33 +08:00
|
|
|
|
2022-10-10 09:43:57 +08:00
|
|
|
int batchUpdate(@Param("collection") List<InsuranceArchivesOtherSchemePO> pos);
|
2022-10-13 14:45:18 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量更新最后缴纳月
|
2022-10-13 16:04:54 +08:00
|
|
|
* @param ids
|
2022-10-13 14:45:18 +08:00
|
|
|
* @param endTime
|
|
|
|
|
*/
|
2022-10-13 16:04:54 +08:00
|
|
|
void batchUpdateEndTime(@Param("ids")List<Long> ids, @Param("endTime")String endTime);
|
2022-10-18 15:33:27 +08:00
|
|
|
|
|
|
|
|
int updateById(InsuranceArchivesOtherSchemePO insuranceArchivesOtherSchemePO);
|
2022-12-12 15:43:12 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量更新最后缴纳月为null
|
|
|
|
|
* @param ids
|
|
|
|
|
*/
|
|
|
|
|
void batchUpdateEndTimeToNull(@Param("ids")List<Long> ids);
|
2023-06-29 10:35:55 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据id删除
|
|
|
|
|
* @param otherArchiveDelIds
|
|
|
|
|
*/
|
|
|
|
|
void deleteByIds(@Param("ids") List<Long> otherArchiveDelIds);
|
2023-07-24 16:39:48 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增
|
|
|
|
|
* @param insuranceArchivesOtherSchemePO
|
|
|
|
|
*/
|
|
|
|
|
void insert(InsuranceArchivesOtherSchemePO insuranceArchivesOtherSchemePO);
|
2023-08-30 15:34:54 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新最后缴纳月
|
|
|
|
|
* @param id
|
|
|
|
|
* @param endTime
|
|
|
|
|
*/
|
|
|
|
|
void updateEndTime(@Param("id")Long id, @Param("endTime")String endTime);
|
2022-03-15 17:39:19 +08:00
|
|
|
}
|