2022-04-12 10:24:21 +08:00
|
|
|
package com.engine.salary.mapper.siaccount;
|
|
|
|
|
|
2022-09-06 17:13:33 +08:00
|
|
|
import com.engine.salary.entity.salarysob.po.SalarySobEmpFieldPO;
|
2022-04-12 10:24:21 +08:00
|
|
|
import com.engine.salary.entity.siaccount.param.InsuranceAccountDetailParam;
|
2022-04-15 13:17:25 +08:00
|
|
|
import com.engine.salary.entity.siaccount.param.SupplementAccountBaseParam;
|
2022-04-12 10:24:21 +08:00
|
|
|
import com.engine.salary.entity.siaccount.po.InsuranceAccountDetailPO;
|
2022-04-16 16:43:33 +08:00
|
|
|
import com.engine.salary.entity.siarchives.po.InsuranceArchivesEmployeePO;
|
2022-04-12 10:24:21 +08:00
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
2022-04-14 11:54:16 +08:00
|
|
|
import java.util.Collection;
|
2022-04-12 10:24:21 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Author weaver_cl
|
|
|
|
|
* @Date 2022/4/11
|
|
|
|
|
* @Version V1.0
|
|
|
|
|
**/
|
|
|
|
|
public interface InsuranceAccountDetailMapper {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询正常缴纳列表
|
2022-08-02 14:58:18 +08:00
|
|
|
*
|
2022-04-12 10:24:21 +08:00
|
|
|
* @param queryParam
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2022-08-02 14:58:18 +08:00
|
|
|
List<InsuranceAccountDetailPO> list(@Param("param") InsuranceAccountDetailParam queryParam);
|
2022-04-14 11:54:16 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据账单月份获取所有员工
|
2022-08-02 14:58:18 +08:00
|
|
|
*
|
2022-04-20 19:12:01 +08:00
|
|
|
* @param time
|
2022-04-14 11:54:16 +08:00
|
|
|
* @return
|
|
|
|
|
*/
|
2022-08-02 14:58:18 +08:00
|
|
|
List<Long> selectAccountIds(@Param("time") String time, @Param("paymentOrganization") Long paymentOrganization);
|
2022-04-14 11:54:16 +08:00
|
|
|
|
2022-07-07 18:29:52 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据缴纳组织获取员工id
|
2022-08-02 14:58:18 +08:00
|
|
|
*
|
2022-07-07 18:29:52 +08:00
|
|
|
* @param paymentOrganization
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<Long> selectEmpByPaymentOrg(@Param("paymentOrganization") Long paymentOrganization);
|
|
|
|
|
|
2022-04-14 11:54:16 +08:00
|
|
|
/**
|
|
|
|
|
* 根据id删除
|
2022-08-02 14:58:18 +08:00
|
|
|
*
|
2022-04-14 11:54:16 +08:00
|
|
|
* @param id
|
|
|
|
|
*/
|
2022-08-02 14:58:18 +08:00
|
|
|
void deleteById(@Param("id") Long id);
|
2022-04-14 11:54:16 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量删除
|
|
|
|
|
*/
|
2022-09-22 14:49:12 +08:00
|
|
|
void batchDelAccountDetails(@Param("employeeIds") Collection<Long> employeeIds, @Param("billMonth") String billMonth, @Param("paymentOrganization") Long paymentOrganization, @Param("paymentStatus") Integer paymentStatus);
|
2022-04-14 11:54:16 +08:00
|
|
|
|
2022-09-23 16:07:10 +08:00
|
|
|
/**
|
|
|
|
|
* 根据id批量删除
|
|
|
|
|
*/
|
|
|
|
|
void batchDelAccountDetailsByIds(@Param("ids") Collection<Long> ids);
|
|
|
|
|
|
2022-04-14 11:54:16 +08:00
|
|
|
/**
|
|
|
|
|
* 批量保存
|
2022-08-02 14:58:18 +08:00
|
|
|
*
|
2022-04-14 11:54:16 +08:00
|
|
|
* @param accounts
|
|
|
|
|
*/
|
|
|
|
|
void batchSaveAccountDetails(@Param("accounts") Collection<InsuranceAccountDetailPO> accounts);
|
|
|
|
|
|
|
|
|
|
|
2022-04-15 13:17:25 +08:00
|
|
|
/**
|
|
|
|
|
* 条件查询
|
2022-08-02 14:58:18 +08:00
|
|
|
*
|
2022-04-15 13:17:25 +08:00
|
|
|
* @param billMonth
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2022-06-10 18:01:55 +08:00
|
|
|
List<InsuranceAccountDetailPO> selectList(@Param("billMonth") String billMonth, @Param("paymentOrganization") Long paymentOrganization);
|
2022-04-15 13:17:25 +08:00
|
|
|
|
2022-08-02 14:58:18 +08:00
|
|
|
List<InsuranceAccountDetailPO> queryList(@Param("billMonth") String billMonth, @Param("paymentOrganization") Long paymentOrganization, @Param("employeeIds") Collection<Long> employeeIds);
|
2022-04-27 14:36:05 +08:00
|
|
|
|
2022-09-21 10:47:07 +08:00
|
|
|
/**
|
|
|
|
|
* 查询正常缴纳数据
|
|
|
|
|
* @param billMonth 账单月份
|
|
|
|
|
* @param paymentOrganization 个税扣缴义务人
|
|
|
|
|
* @param employeeId 人员id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<InsuranceAccountDetailPO> queryNormalList(@Param("billMonth") String billMonth, @Param("paymentOrganization") Long paymentOrganization, @Param("employeeId") Long employeeId);
|
|
|
|
|
|
2022-09-19 14:14:17 +08:00
|
|
|
/**
|
|
|
|
|
* 查询补缴数据
|
2022-09-19 17:59:12 +08:00
|
|
|
* @param billMonth 账单月份
|
|
|
|
|
* @param paymentOrganization 个税扣缴义务人
|
|
|
|
|
* @param employeeId 人员id
|
|
|
|
|
* @param supplementaryMonth 补缴月份
|
2022-09-19 14:14:17 +08:00
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<InsuranceAccountDetailPO> querySupplementList(@Param("billMonth") String billMonth, @Param("paymentOrganization") Long paymentOrganization, @Param("employeeId") Long employeeId, @Param("supplementaryMonth") String supplementaryMonth);
|
|
|
|
|
|
2022-09-19 17:59:12 +08:00
|
|
|
/**
|
|
|
|
|
* 查询补缴数据
|
|
|
|
|
* @param billMonth 账单月份
|
|
|
|
|
* @param paymentOrganization 个税扣缴义务人
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<InsuranceAccountDetailPO> querySupplementListByBillMonth(@Param("billMonth") String billMonth, @Param("paymentOrganization") Long paymentOrganization);
|
2022-09-30 15:40:15 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询正常缴纳数据
|
|
|
|
|
* @param billMonth 账单月份
|
|
|
|
|
* @param paymentOrganization 个税扣缴义务人
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<InsuranceAccountDetailPO> queryNormalListByBillMonth(@Param("billMonth") String billMonth, @Param("paymentOrganization") Long paymentOrganization);
|
2022-04-15 13:17:25 +08:00
|
|
|
/**
|
|
|
|
|
* 根据账单月份删除
|
2022-08-02 14:58:18 +08:00
|
|
|
*
|
2022-04-15 13:17:25 +08:00
|
|
|
* @param billMonth
|
|
|
|
|
*/
|
2022-08-02 14:58:18 +08:00
|
|
|
void batchDeleteNotFile(@Param("billMonth") String billMonth, @Param("paymentOrganization") Long paymentOrganization);
|
2022-04-15 13:17:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量删除
|
2022-08-02 14:58:18 +08:00
|
|
|
*
|
2022-04-15 13:17:25 +08:00
|
|
|
* @param pos
|
|
|
|
|
*/
|
|
|
|
|
void batchDelSupplementAccountDetails(@Param("pos") Collection<InsuranceAccountDetailPO> pos);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据员工id批量删除
|
2022-08-02 14:58:18 +08:00
|
|
|
*
|
2022-04-15 13:17:25 +08:00
|
|
|
* @param pos
|
|
|
|
|
*/
|
|
|
|
|
void batchDelSupplementDetailsByIds(@Param("pos") Collection<SupplementAccountBaseParam> pos);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void batchUnConfirmedInspectDetails(@Param("ids") Collection<Long> ids);
|
|
|
|
|
|
2022-04-15 19:01:09 +08:00
|
|
|
|
|
|
|
|
void batchIgnoreInspectDetails(@Param("ids") Collection<Long> ids);
|
2022-04-16 16:43:33 +08:00
|
|
|
|
|
|
|
|
|
2022-05-19 11:23:25 +08:00
|
|
|
List<InsuranceArchivesEmployeePO> changeList(@Param("userName") String userName);
|
2022-04-16 16:43:33 +08:00
|
|
|
|
2022-09-06 17:13:33 +08:00
|
|
|
/**
|
2022-09-08 09:43:46 +08:00
|
|
|
* 根据员工id和账单月份更新数据
|
2022-09-06 17:13:33 +08:00
|
|
|
*/
|
2022-09-08 09:43:46 +08:00
|
|
|
void updateByEmployeeIdAndBillMonth(InsuranceAccountDetailPO po);
|
2022-09-06 17:13:33 +08:00
|
|
|
|
2022-04-12 10:24:21 +08:00
|
|
|
}
|