diff --git a/src/com/engine/salary/entity/siaccount/bo/InsuranceComparisonResultBO.java b/src/com/engine/salary/entity/siaccount/bo/InsuranceComparisonResultBO.java
index 79909c1e2..c6e6b40a3 100644
--- a/src/com/engine/salary/entity/siaccount/bo/InsuranceComparisonResultBO.java
+++ b/src/com/engine/salary/entity/siaccount/bo/InsuranceComparisonResultBO.java
@@ -242,12 +242,6 @@ public class InsuranceComparisonResultBO {
//其他福利基数,otherPaymentBaseString
welfareElementCompare(map, accountExportPO.getOtherPaymentBaseString(), excelAccountExportPO.getOtherPaymentBaseString(), "Base", 3);
}
- //社保基数,socialPaymentBaseString
- welfareElementCompare(map, accountExportPO.getSocialPaymentBaseString(), excelAccountExportPO.getSocialPaymentBaseString(), "Base", 1);
- //公积金基数,fundPaymentBaseString
- welfareElementCompare(map, accountExportPO.getFundPaymentBaseString(), excelAccountExportPO.getFundPaymentBaseString(), "Base", 2);
- //其他福利基数,otherPaymentBaseString
- welfareElementCompare(map, accountExportPO.getOtherPaymentBaseString(), excelAccountExportPO.getOtherPaymentBaseString(), "Base", 3);
//社保个人socialPerJson
welfareElementCompare(map, accountExportPO.getSocialPerJson(), excelAccountExportPO.getSocialPerJson(), "Per", 1);
//公积金个人fundPerJson
diff --git a/src/com/engine/salary/entity/siaccount/param/ExcelInsuranceImportParam.java b/src/com/engine/salary/entity/siaccount/param/ExcelInsuranceImportParam.java
index 17b926b08..7a9090845 100644
--- a/src/com/engine/salary/entity/siaccount/param/ExcelInsuranceImportParam.java
+++ b/src/com/engine/salary/entity/siaccount/param/ExcelInsuranceImportParam.java
@@ -25,5 +25,6 @@ public class ExcelInsuranceImportParam {
/**
* 账单月份
*/
- private String billMonth;
+ private String billMonth;
+ private String paymentOrganization;
}
diff --git a/src/com/engine/salary/mapper/siaccount/ExcelInsuranceDetailMapper.xml b/src/com/engine/salary/mapper/siaccount/ExcelInsuranceDetailMapper.xml
index d45fdec16..15ac635ce 100644
--- a/src/com/engine/salary/mapper/siaccount/ExcelInsuranceDetailMapper.xml
+++ b/src/com/engine/salary/mapper/siaccount/ExcelInsuranceDetailMapper.xml
@@ -157,7 +157,8 @@
(id,employee_id,bill_month,bill_status,payment_status,supplementary_month,supplementary_projects,resource_from,social_pay_org,social_account,social_scheme_id,social_payment_base_string,
fund_pay_org,fund_account,supplement_fund_account,fund_scheme_id,fund_payment_base_string,other_pay_org,other_scheme_id,other_payment_base_string,social_per_json,
social_per_sum,fund_per_json,fund_per_sum,other_per_json,other_per_sum,per_sum,social_com_json,social_com_sum,fund_com_json,fund_com_sum,other_com_json,other_com_sum,
- com_sum,social_sum,fund_sum,other_sum,total,creator,create_time,update_time,delete_type,tenant_key,payment_organization)
+ com_sum,social_sum,fund_sum,other_sum,total,creator,create_time,update_time,delete_type,tenant_key,payment_organization,
+ social_payment_com_base_string,fund_payment_com_base_string,other_payment_com_base_string)
VALUES
(
@@ -204,7 +205,10 @@
#{item.updateTime},
#{item.deleteType},
#{item.tenantKey},
- #{item.paymentOrganization}
+ #{item.paymentOrganization},
+ #{item.socialPaymentComBaseString},
+ #{item.fundPaymentComBaseString},
+ #{item.otherPaymentComBaseString}
)
@@ -213,7 +217,8 @@
(id,employee_id,bill_month,bill_status,payment_status,supplementary_month,supplementary_projects,resource_from,social_pay_org,social_account,social_scheme_id,social_payment_base_string,
fund_pay_org,fund_account,supplement_fund_account,fund_scheme_id,fund_payment_base_string,other_pay_org,other_scheme_id,other_payment_base_string,social_per_json,
social_per_sum,fund_per_json,fund_per_sum,other_per_json,other_per_sum,per_sum,social_com_json,social_com_sum,fund_com_json,fund_com_sum,other_com_json,other_com_sum,
- com_sum,social_sum,fund_sum,other_sum,total,creator,create_time,update_time,delete_type,tenant_key,payment_organization)
+ com_sum,social_sum,fund_sum,other_sum,total,creator,create_time,update_time,delete_type,tenant_key,payment_organization,
+ social_payment_com_base_string,fund_payment_com_base_string,other_payment_com_base_string)
select
#{item.id,jdbcType=DOUBLE},
@@ -259,7 +264,10 @@
#{item.updateTime},
#{item.deleteType},
#{item.tenantKey,jdbcType=VARCHAR},
- #{item.paymentOrganization,jdbcType=DOUBLE}
+ #{item.paymentOrganization,jdbcType=DOUBLE},
+ #{item.socialPaymentComBaseString,jdbcType=VARCHAR},
+ #{item.fundPaymentComBaseString,jdbcType=VARCHAR},
+ #{item.otherPaymentComBaseString,jdbcType=VARCHAR}
from dual
@@ -269,7 +277,8 @@
(id,employee_id,bill_month,bill_status,payment_status,supplementary_month,supplementary_projects,resource_from,social_pay_org,social_account,social_scheme_id,social_payment_base_string,
fund_pay_org,fund_account,supplement_fund_account,fund_scheme_id,fund_payment_base_string,other_pay_org,other_scheme_id,other_payment_base_string,social_per_json,
social_per_sum,fund_per_json,fund_per_sum,other_per_json,other_per_sum,per_sum,social_com_json,social_com_sum,fund_com_json,fund_com_sum,other_com_json,other_com_sum,
- com_sum,social_sum,fund_sum,other_sum,total,creator,create_time,update_time,delete_type,tenant_key,payment_organization)
+ com_sum,social_sum,fund_sum,other_sum,total,creator,create_time,update_time,delete_type,tenant_key,payment_organization,
+ social_payment_com_base_string,fund_payment_com_base_string,other_payment_com_base_string)
VALUES
(
#{item.id},
@@ -315,7 +324,10 @@
#{item.updateTime},
#{item.deleteType},
#{item.tenantKey},
- #{item.paymentOrganization}
+ #{item.paymentOrganization},
+ #{item.socialPaymentComBaseString},
+ #{item.fundPaymentComBaseString},
+ #{item.otherPaymentComBaseString}
)
diff --git a/src/com/engine/salary/service/impl/SIAComparisonResultServiceImpl.java b/src/com/engine/salary/service/impl/SIAComparisonResultServiceImpl.java
index 23587a874..389e4ef2b 100644
--- a/src/com/engine/salary/service/impl/SIAComparisonResultServiceImpl.java
+++ b/src/com/engine/salary/service/impl/SIAComparisonResultServiceImpl.java
@@ -25,6 +25,7 @@ import com.engine.salary.sys.service.SalarySysConfService;
import com.engine.salary.sys.service.impl.SalarySysConfServiceImpl;
import com.engine.salary.util.db.MapperProxyFactory;
import com.engine.salary.util.excel.ExcelUtil;
+import com.engine.salary.util.excel.ExcelUtilPlus;
import com.engine.salary.util.page.Column;
import com.engine.salary.util.page.PageInfo;
import com.engine.salary.util.page.SalaryPageUtil;
@@ -134,7 +135,7 @@ public class SIAComparisonResultServiceImpl extends Service implements SIACompar
String sheetName = "线下对比结果";
- return ExcelUtil.genWorkbookV2(rows, sheetName);
+ return ExcelUtilPlus.genWorkbookV2(rows, sheetName);
}
@@ -231,7 +232,7 @@ public class SIAComparisonResultServiceImpl extends Service implements SIACompar
}
private Set welfareInfo() {
-
+ boolean welBaseDiffSign = siArchivesBiz.isDiffWelBase();
Set info = new HashSet<>();
List listAll = getICategoryMapper().listAll();
@@ -239,18 +240,37 @@ public class SIAComparisonResultServiceImpl extends Service implements SIACompar
List fundWelfareList = listAll.stream().filter(e -> e.getWelfareType() == 2).collect(Collectors.toList());
List otherWelfareList = listAll.stream().filter(e -> e.getWelfareType() == 3).collect(Collectors.toList());
- //组装社保基数
- for (ICategoryPO po : socialWelfareList) {
- info.add(po.getId() + "socialBase");
- }
- //组装公积金基数
- for (ICategoryPO po : fundWelfareList) {
- info.add(po.getId() + "fundBase");
- }
- //组装其他福利基数
- for (ICategoryPO po : otherWelfareList) {
- info.add(po.getId() + "otherBase");
+ if (welBaseDiffSign) {
+ //组装社保基数
+ for (ICategoryPO po : socialWelfareList) {
+ info.add(po.getId() + "socialPerBase");
+ info.add(po.getId() + "socialComBase");
+ }
+ //组装公积金基数
+ for (ICategoryPO po : fundWelfareList) {
+ info.add(po.getId() + "fundPerBase");
+ info.add(po.getId() + "fundComBase");
+ }
+ //组装其他福利基数
+ for (ICategoryPO po : otherWelfareList) {
+ info.add(po.getId() + "otherPerBase");
+ info.add(po.getId() + "otherComBase");
+ }
+ } else {
+ //组装社保基数
+ for (ICategoryPO po : socialWelfareList) {
+ info.add(po.getId() + "socialBase");
+ }
+ //组装公积金基数
+ for (ICategoryPO po : fundWelfareList) {
+ info.add(po.getId() + "fundBase");
+ }
+ //组装其他福利基数
+ for (ICategoryPO po : otherWelfareList) {
+ info.add(po.getId() + "otherBase");
+ }
}
+
//社保个人(生育保险个人、工伤保险个人、失业保险个人、养老保险个人、医疗保险个人)
for (ICategoryPO po : socialWelfareList) {
info.add(po.getId() + "socialPer");
diff --git a/src/com/engine/salary/service/impl/SIAccountServiceImpl.java b/src/com/engine/salary/service/impl/SIAccountServiceImpl.java
index d9387e62c..1385b84d7 100644
--- a/src/com/engine/salary/service/impl/SIAccountServiceImpl.java
+++ b/src/com/engine/salary/service/impl/SIAccountServiceImpl.java
@@ -2222,6 +2222,78 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
*/
@Override
public XSSFWorkbook exportComparisonWelfareTemplate(InsuranceAccountDetailParam param) {
+ Map> welColumnMap = createWelColumnMap(param);
+
+ List