From 4b37775f785d9bb34cdf0ccb631fe28336813424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E6=B6=9B?= <15850646081@163.com> Date: Tue, 18 Oct 2022 09:43:58 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E5=8F=91=E8=96=AA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/sql/薪资还原脚本.sql | 28 +++++++++++-------- .../dto/SalaryArchiveFormDTO.java | 5 ++++ .../salaryarchive/po/SalaryArchivePO.java | 3 ++ .../salary/wrapper/SalaryArchiveWrapper.java | 5 ++++ 4 files changed, 30 insertions(+), 11 deletions(-) diff --git a/resource/sql/薪资还原脚本.sql b/resource/sql/薪资还原脚本.sql index f816c76bf..f3846763f 100644 --- a/resource/sql/薪资还原脚本.sql +++ b/resource/sql/薪资还原脚本.sql @@ -14,6 +14,18 @@ delete from hrsa_attend_quote_field where 1=1 ; delete from hrsa_attend_quote_sync_set where 1=1 ; + + +delete from hrsa_scheme_detail where 1=1 +; +delete from hrsa_social_archives where 1=1 +; +delete from hrsa_fund_archives where 1=1 +; +delete from hrsa_other_archives where 1=1 +; + + delete from hrsa_bill_batch where 1=1 ; @@ -23,6 +35,10 @@ delete from hrsa_bill_detail_temp where 1=1 ; delete from hrsa_bill_inspect where 1=1 ; + +delete from hrsa_insurance_category where 1=1 +; + delete from hrsa_check_result where 1=1 ; delete from hrsa_check_result_record where 1=1 @@ -31,10 +47,7 @@ delete from hrsa_ck_result_detail_temp where 1=1 ; delete from hrsa_excel_acct_result where 1=1 ; -delete from hrsa_fund_archives where 1=1 -; -delete from hrsa_other_archives where 1=1 -; + delete from hrsa_other_deduction where 1=1 ; delete from hrsa_salary_acct_emp where 1=1 @@ -71,11 +84,6 @@ delete from hrsa_salary_sob_range where 1=1 ; delete from hrsa_salary_template where 1=1 ; -delete from hrsa_scheme_detail where 1=1 -; -delete from hrsa_social_archives where 1=1 -; - delete from hrsa_social_security_scheme where 1=1 ; @@ -108,8 +116,6 @@ delete from hrsa_tax_rate_base where 1=1 ; delete from hrsa_tax_rate_detail where 1=1 ; -delete from hrsa_insurance_category where 1=1 -; delete from hrsa_salary_acct_result_report where 1=1 ; diff --git a/src/com/engine/salary/entity/salaryarchive/dto/SalaryArchiveFormDTO.java b/src/com/engine/salary/entity/salaryarchive/dto/SalaryArchiveFormDTO.java index caefe0b10..dca0f284c 100644 --- a/src/com/engine/salary/entity/salaryarchive/dto/SalaryArchiveFormDTO.java +++ b/src/com/engine/salary/entity/salaryarchive/dto/SalaryArchiveFormDTO.java @@ -32,6 +32,11 @@ public class SalaryArchiveFormDTO { //基本信息 private Map baseInfo; + /** + * 发薪设置 + */ + private Map paySet; + //薪资档案 private List> adjustSalaryItems; diff --git a/src/com/engine/salary/entity/salaryarchive/po/SalaryArchivePO.java b/src/com/engine/salary/entity/salaryarchive/po/SalaryArchivePO.java index 2d2b80459..542b69380 100644 --- a/src/com/engine/salary/entity/salaryarchive/po/SalaryArchivePO.java +++ b/src/com/engine/salary/entity/salaryarchive/po/SalaryArchivePO.java @@ -2,6 +2,7 @@ package com.engine.salary.entity.salaryarchive.po; import com.engine.salary.enums.salaryarchive.SalaryArchiveStatusEnum; import com.engine.salary.enums.salaryarchive.SalaryArchiveAddTypeEnum; +import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,11 +41,13 @@ public class SalaryArchivePO { /** * 起始发薪日期 */ + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date payStartDate; /** * 最后发薪日期 */ + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date payEndDate; /** diff --git a/src/com/engine/salary/wrapper/SalaryArchiveWrapper.java b/src/com/engine/salary/wrapper/SalaryArchiveWrapper.java index cc45cb9cc..88228c667 100644 --- a/src/com/engine/salary/wrapper/SalaryArchiveWrapper.java +++ b/src/com/engine/salary/wrapper/SalaryArchiveWrapper.java @@ -344,6 +344,10 @@ public class SalaryArchiveWrapper extends Service { List> salaryItems = Lists.newArrayList(); + // 2.发薪设置表单 + Map paySetForm = new HashMap<>(); + paySetForm.put("data",po); + // 获取所有可被引用的薪资项目 List salaryItemList = getSalaryArchiveItemService(user).getCanAdjustSalaryItems(); @@ -363,6 +367,7 @@ public class SalaryArchiveWrapper extends Service { .id(salaryArchiveId) .employeeId(employee.getEmployeeId()) .baseInfo(baseInfo) + .paySet(paySetForm) .adjustSalaryItems(salaryItems) .build(); } From 9b119a43dfadc4730c1effc790920382d0ecfef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=A0=8B?= Date: Tue, 18 Oct 2022 11:42:54 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=96=AA=E8=B5=84=E6=A1=A3=E6=A1=88?= =?UTF-8?q?=E5=8A=A0=E5=AF=86=E8=AE=BE=E7=BD=AE=E5=A4=9A=E4=BD=99=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/SalarySysConfServiceImpl.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/com/engine/salary/sys/service/impl/SalarySysConfServiceImpl.java b/src/com/engine/salary/sys/service/impl/SalarySysConfServiceImpl.java index a9a04d09d..efd8e42c0 100644 --- a/src/com/engine/salary/sys/service/impl/SalarySysConfServiceImpl.java +++ b/src/com/engine/salary/sys/service/impl/SalarySysConfServiceImpl.java @@ -664,17 +664,13 @@ public class SalarySysConfServiceImpl extends Service implements SalarySysConfSe po.setOtherPaymentBaseString(AESEncryptUtil.closeEncryptSetting(po.getOtherPaymentBaseString())); po.setSocialPerJson(AESEncryptUtil.closeEncryptSetting(po.getSocialPerJson())); po.setSocialPerSum(AESEncryptUtil.closeEncryptSetting(po.getSocialPerSum())); - po.setSocialComJson(AESEncryptUtil.closeEncryptSetting(po.getSocialComJson())); - po.setSocialComSum(AESEncryptUtil.closeEncryptSetting(po.getSocialComSum())); po.setFundPerJson(AESEncryptUtil.closeEncryptSetting(po.getFundPerJson())); po.setFundPerSum(AESEncryptUtil.closeEncryptSetting(po.getFundPerSum())); po.setOtherPerJson(AESEncryptUtil.closeEncryptSetting(po.getOtherPerJson())); po.setOtherPerSum(AESEncryptUtil.closeEncryptSetting(po.getOtherPerSum())); po.setPerSum(AESEncryptUtil.closeEncryptSetting(po.getPerSum())); - po.setFundComJson(AESEncryptUtil.closeEncryptSetting(po.getFundComJson())); - po.setFundComSum(AESEncryptUtil.closeEncryptSetting(po.getFundComSum())); - po.setOtherComJson(AESEncryptUtil.closeEncryptSetting(po.getOtherComJson())); - po.setOtherComSum(AESEncryptUtil.closeEncryptSetting(po.getOtherComSum())); + po.setSocialComJson(AESEncryptUtil.closeEncryptSetting(po.getSocialComJson())); + po.setSocialComSum(AESEncryptUtil.closeEncryptSetting(po.getSocialComSum())); po.setComSum(AESEncryptUtil.closeEncryptSetting(po.getComSum())); po.setSocialSum(AESEncryptUtil.closeEncryptSetting(po.getSocialSum())); po.setFundSum(AESEncryptUtil.closeEncryptSetting(po.getFundSum())); @@ -686,17 +682,13 @@ public class SalarySysConfServiceImpl extends Service implements SalarySysConfSe po.setOtherPaymentBaseString(AESEncryptUtil.encrypt(po.getOtherPaymentBaseString())); po.setSocialPerJson(AESEncryptUtil.encrypt(po.getSocialPerJson())); po.setSocialPerSum(AESEncryptUtil.encrypt(po.getSocialPerSum())); - po.setSocialComJson(AESEncryptUtil.encrypt(po.getSocialComJson())); - po.setSocialComSum(AESEncryptUtil.encrypt(po.getSocialComSum())); po.setFundPerJson(AESEncryptUtil.encrypt(po.getFundPerJson())); po.setFundPerSum(AESEncryptUtil.encrypt(po.getFundPerSum())); po.setOtherPerJson(AESEncryptUtil.encrypt(po.getOtherPerJson())); po.setOtherPerSum(AESEncryptUtil.encrypt(po.getOtherPerSum())); po.setPerSum(AESEncryptUtil.encrypt(po.getPerSum())); - po.setFundComJson(AESEncryptUtil.encrypt(po.getFundComJson())); - po.setFundComSum(AESEncryptUtil.encrypt(po.getFundComSum())); - po.setOtherComJson(AESEncryptUtil.encrypt(po.getOtherComJson())); - po.setOtherComSum(AESEncryptUtil.encrypt(po.getOtherComSum())); + po.setSocialComJson(AESEncryptUtil.encrypt(po.getSocialComJson())); + po.setSocialComSum(AESEncryptUtil.encrypt(po.getSocialComSum())); po.setComSum(AESEncryptUtil.encrypt(po.getComSum())); po.setSocialSum(AESEncryptUtil.encrypt(po.getSocialSum())); po.setFundSum(AESEncryptUtil.encrypt(po.getFundSum())); From a29670d7523ef173f8c9c6cddbf05288722aa6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E6=B6=9B?= <15850646081@163.com> Date: Tue, 18 Oct 2022 15:04:29 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=81=9C=E8=96=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/engine/salary/mapper/archive/SalaryArchiveMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/engine/salary/mapper/archive/SalaryArchiveMapper.xml b/src/com/engine/salary/mapper/archive/SalaryArchiveMapper.xml index db9827f7e..27d22f85d 100644 --- a/src/com/engine/salary/mapper/archive/SalaryArchiveMapper.xml +++ b/src/com/engine/salary/mapper/archive/SalaryArchiveMapper.xml @@ -555,7 +555,7 @@ run_status='STOP_FROM_SUSPEND' - WHERE run_status = 'FIXED' and pay_end_date is not null + WHERE run_status = 'SUSPEND' and pay_end_date is not null and id IN #{id}