From 3e300e62ebc2f2c1b18166aa425fde27fb2d065a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E6=B6=9B?= <15850646081@163.com> Date: Wed, 29 Jun 2022 14:13:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A6=8F=E5=88=A9=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6=E8=A1=A5=E7=BC=B4=E5=8A=9F=E8=83=BD=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/engine/salary/biz/SIAccountBiz.java | 2 + .../siaccount/po/InsuranceAccountBatchPO.java | 1 + .../enums/siaccount/ProjectTypeEnum.java | 7 +- .../InsuranceAccountDetailMapper.xml | 141 +++++++++--------- 4 files changed, 71 insertions(+), 80 deletions(-) diff --git a/src/com/engine/salary/biz/SIAccountBiz.java b/src/com/engine/salary/biz/SIAccountBiz.java index 8cb803281..2dd0b1d53 100644 --- a/src/com/engine/salary/biz/SIAccountBiz.java +++ b/src/com/engine/salary/biz/SIAccountBiz.java @@ -838,6 +838,7 @@ public class SIAccountBiz extends Service { SupplementAccountBaseParam supplementAccountBaseParam = SupplementAccountBaseParam.builder() .supplementaryMonth(month) .employeeId(id) + .paymentOrganization(param.getPaymentOrganization()) .projects(param.getProjects()) .billMonth(param.getBillMonth()) .build(); @@ -882,6 +883,7 @@ public class SIAccountBiz extends Service { insuranceAccountDetailPO.setEmployeeId(baseParam.getEmployeeId()); insuranceAccountDetailPO.setPaymentStatus(PaymentStatusEnum.REPAIR.getValue()); insuranceAccountDetailPO.setSupplementaryMonth(baseParam.getSupplementaryMonth()); + insuranceAccountDetailPO.setPaymentOrganization(baseParam.getPaymentOrganization()); insuranceAccountDetailPO.setSupplementaryProjects( String.join(",", baseParam.getProjects() == null ? new ArrayList<>() : baseParam.getProjects().stream().map(String::valueOf).collect(Collectors.toList()))); diff --git a/src/com/engine/salary/entity/siaccount/po/InsuranceAccountBatchPO.java b/src/com/engine/salary/entity/siaccount/po/InsuranceAccountBatchPO.java index 3aec5159e..6d271ff89 100644 --- a/src/com/engine/salary/entity/siaccount/po/InsuranceAccountBatchPO.java +++ b/src/com/engine/salary/entity/siaccount/po/InsuranceAccountBatchPO.java @@ -18,6 +18,7 @@ import java.util.Date; @Builder @NoArgsConstructor @AllArgsConstructor +//hrsa_bill_batch public class InsuranceAccountBatchPO { /** diff --git a/src/com/engine/salary/enums/siaccount/ProjectTypeEnum.java b/src/com/engine/salary/enums/siaccount/ProjectTypeEnum.java index ba56f4a6a..246a6e701 100644 --- a/src/com/engine/salary/enums/siaccount/ProjectTypeEnum.java +++ b/src/com/engine/salary/enums/siaccount/ProjectTypeEnum.java @@ -2,12 +2,7 @@ package com.engine.salary.enums.siaccount; import com.engine.salary.enums.BaseEnum; -/** - * @Description: - * @Author: zhangheng - * @CreateDate: 2021/12/10 13:10 - * @Version: v1.0 - */ + public enum ProjectTypeEnum implements BaseEnum { ALL(0, "全部", 85155), SOCIAL(1, "社保", 86568), diff --git a/src/com/engine/salary/mapper/siaccount/InsuranceAccountDetailMapper.xml b/src/com/engine/salary/mapper/siaccount/InsuranceAccountDetailMapper.xml index d970f1cc6..1b2475793 100644 --- a/src/com/engine/salary/mapper/siaccount/InsuranceAccountDetailMapper.xml +++ b/src/com/engine/salary/mapper/siaccount/InsuranceAccountDetailMapper.xml @@ -102,7 +102,7 @@ AND t.bill_month = #{param.billMonth} - + AND t.payment_status = #{param.paymentStatus} @@ -162,7 +162,7 @@ hrsa_bill_detail t WHERE t.delete_type = 0 AND t.bill_month = #{billMonth} - + AND t.payment_organization = #{paymentOrganization} @@ -223,12 +223,8 @@ LEFT JOIN hrsa_fund_archives fund ON t.ID = fund.employee_id LEFT JOIN hrsa_other_archives other ON t.ID = other.employee_id WHERE ( + fund.delete_type = 0 and fund.fund_start_time IS NOT NULL AND fund.fund_start_time != '' - - AND - -- 个税扣缴义务人 - fund.payment_organization = #{paymentOrganization} - AND( fund.fund_end_time IS NULL OR fund.fund_end_time = '' @@ -236,8 +232,9 @@ ) ) OR ( + social.delete_type = 0 and social.social_start_time IS NOT NULL AND social.social_start_time != '' - + AND -- 个税扣缴义务人 social.payment_organization = #{paymentOrganization} @@ -249,12 +246,8 @@ ) ) OR ( + other.delete_type = 0 and other.other_start_time IS NOT NULL AND other.other_start_time != '' - - AND - -- 个税扣缴义务人 - other.payment_organization = #{paymentOrganization} - AND( other.other_end_time IS NULL OR other.other_end_time = '' @@ -264,67 +257,67 @@ ) a - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +