Merge branch 'release/个税版本' into custom/艾志工业
This commit is contained in:
commit
b136c71814
|
|
@ -1,5 +1,5 @@
|
|||
log=false
|
||||
defaultCloseNonStandard149=true
|
||||
AESEncryptScrect=990EB004A1C862721C1513AE90038C9E
|
||||
version=2.12.1.2403.02
|
||||
version=2.13.1.2404.02
|
||||
openFormulaForcedEditing=false
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312885, 1, 674916065864646661, 1, 0, 0, to_date('2022-05-05 16:30:11','yyyy-MM-dd HH24:mi:ss'), to_date('2022-05-05 16:30:11','yyyy-MM-dd HH24:mi:ss'), 0, 'all_teams', 703433961629614119, 5);
|
||||
/
|
||||
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312885, 1, 674916065864646661, 1, 0, 0, to_date('2022-05-05 16:30:11','yyyy-MM-dd HH24:mi:ss'), to_date('2022-05-05 16:30:11','yyyy-MM-dd HH24:mi:ss'), 0, 'all_teams', 703433961629614119, 5);
|
||||
/
|
||||
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312885, 1, 674916065864646661, 1, 0, 0, to_date('2022-05-05 16:30:11','yyyy-MM-dd HH24:mi:ss'), to_date('2022-05-05 16:30:11','yyyy-MM-dd HH24:mi:ss'), 0, 'all_teams', 703433961629614119, 5);
|
||||
/
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312885, 1, 674916065864646661, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614119, 5);
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312885, 1, 674916065864646661, 1, 0, 0, to_date('2022-05-05 16:30:11','yyyy-MM-dd HH24:mi:ss'), to_date('2022-05-05 16:30:11','yyyy-MM-dd HH24:mi:ss'), 0, 'all_teams', 703433961629614119, 5)
|
||||
/
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312885, 1, 674916065864646661, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614119, 5);
|
||||
/
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312885, 1, 674916065864646661, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614119, 5)
|
||||
GO
|
||||
|
|
@ -1,9 +1,16 @@
|
|||
ALTER TABLE hrsa_employee_declare
|
||||
ADD nationality varchar(255) NULL ,
|
||||
ADD birthplace varchar(255) NULL ,
|
||||
ADD tax_reasons varchar(255) NULL ,
|
||||
entry_date datetime NULL ,
|
||||
departure_date datetime NULL
|
||||
ALTER TABLE hrsa_employee_declare ADD nationality varchar(255) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE hrsa_employee_declare ADD birthplace varchar(255) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE hrsa_employee_declare ADD tax_reasons varchar(255) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE hrsa_employee_declare ADD entry_date datetime NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE hrsa_employee_declare ADD departure_date datetime NULL
|
||||
GO
|
||||
|
||||
update hrsa_employee_declare set nationality = '中国' where nationality is null
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312885, 1, 674916065864646661, 1, 0, 0, to_date('2022-05-05 16:30:11','yyyy-MM-dd HH24:mi:ss'), to_date('2022-05-05 16:30:11','yyyy-MM-dd HH24:mi:ss'), 0, 'all_teams', 703433961629614119, 5);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package com.customization.salary;
|
||||
|
||||
import com.engine.core.cfg.annotation.ServiceDynamicProxy;
|
||||
import com.engine.core.impl.aop.AbstractServiceProxy;
|
||||
import com.engine.salary.entity.salaryacct.dto.SalaryAcctResultDetailDTO;
|
||||
import com.engine.salary.entity.salaryacct.dto.SalaryAcctResultListColumnDTO;
|
||||
import com.engine.salary.entity.salaryacct.param.*;
|
||||
import com.engine.salary.wrapper.SalaryAcctResultWrapper;
|
||||
import com.engine.salary.wrapper.proxy.SalaryAcctResultWrapperProxy;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 薪资核算结果
|
||||
* <p>Copyright: Copyright (c) 2022</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
@ServiceDynamicProxy(target = SalaryAcctResultWrapper.class, desc = "核算结果")
|
||||
public class CustomSalaryAcctResultWrapper extends AbstractServiceProxy implements SalaryAcctResultWrapperProxy {
|
||||
|
||||
@Override
|
||||
public Map<String, Object> listPage(SalaryAcctResultQueryParam queryParam) {
|
||||
return (Map<String, Object>)executeMethod(queryParam);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SalaryAcctResultDetailDTO getForm(Long salaryAcctEmployeeId) {
|
||||
return (SalaryAcctResultDetailDTO)executeMethod(salaryAcctEmployeeId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, SalaryAcctResultListColumnDTO> getColumnBySalaryAcctRecordId(Long salaryAcctRecordId) {
|
||||
return (Map<String, SalaryAcctResultListColumnDTO>)executeMethod(salaryAcctRecordId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save(SalaryAcctResultSaveParam saveParam) {
|
||||
//todo do some thing
|
||||
executeMethod(saveParam);
|
||||
//todo do some thing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateLockStatusByParam(SalaryAcctResultUpdateLockStatusParam updateParam) {
|
||||
executeMethod(updateParam);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void calculate(SalaryAcctCalculateParam calculateParam) {
|
||||
executeMethod(calculateParam);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void batchUpdate(SalaryAcctResultBatchUpdateParam param) {
|
||||
executeMethod(param);
|
||||
}
|
||||
}
|
||||
|
|
@ -19,3 +19,16 @@ update hrsa_salary_archive set delete_type=3 where tax_agent_id=扣缴义务人
|
|||
|
||||
二、删除停薪员工档案
|
||||
update hrsa_salary_archive set delete_type=3 where run_status in ('STOP_FROM_PENDING','STOP_FROM_SUSPEND')
|
||||
|
||||
|
||||
三、删除指定人员档案
|
||||
|
||||
|
||||
--删除社保福利档案
|
||||
update hrsa_insurance_base_info set delete_type=3 WHERE employee_id = ? and payment_organization =?
|
||||
update hrsa_social_archives set delete_type=3 WHERE employee_id = ? and payment_organization =?
|
||||
update hrsa_fund_archives set delete_type=3 WHERE employee_id = ? and payment_organization =?
|
||||
update hrsa_other_archives set delete_type=3 WHERE employee_id = ? and payment_organization =?
|
||||
|
||||
-- 删除薪资档案
|
||||
update hrsa_salary_archive set delete_type=3 where employee_id = ? and tax_agent_id=?
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
# 工资数据报表
|
||||
|
||||
````
|
||||
select e.lastname,sob.name as 账套名, record.salary_month as 薪资月, item.name as 薪资项 ,result.result_value as 值
|
||||
from hrsa_salary_acct_record record
|
||||
left join hrsa_salary_sob sob on record.salary_sob_id = sob.id and sob.delete_type = 0 and record.delete_type = 0
|
||||
left join hrsa_salary_acct_result result on record.id = result.salary_acct_record_id and result.delete_type = 0 and record.delete_type = 0
|
||||
left join hrsa_salary_item item on result.salary_item_id = item.id and item.delete_type = 0
|
||||
left join hrsa_tax_agent agent on agent.id=sob.tax_agent_id and agent.delete_type=0
|
||||
left join hrmresource e on e.id= result.employee_id
|
||||
|
|
@ -183,6 +183,8 @@ public class UpdateSISchemeDetailAction implements Action {
|
|||
String validNum = importDataMap.getOrDefault("有效小数位", "").toString();
|
||||
if (StringUtils.isNotBlank(validNum)) {
|
||||
targetSchemeDetailPO.setValidNum(Integer.valueOf(validNum));
|
||||
}else {
|
||||
targetSchemeDetailPO.setValidNum(2);
|
||||
}
|
||||
String rententionRule = importDataMap.getOrDefault("进位规则", "").toString();
|
||||
if (StringUtils.isNotBlank(rententionRule)) {
|
||||
|
|
|
|||
|
|
@ -678,7 +678,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(archivesPerson) || StringUtils.isBlank(archivesPerson.get(String.valueOf(e)))) ? "0" : archivesPerson.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (po.getPaymentCycle() != null && po.getPaymentCycle() == 1) {
|
||||
|
|
@ -755,7 +755,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(finalArchivesCom) || StringUtils.isBlank(finalArchivesCom.get(String.valueOf(e)))) ? "0" : finalArchivesCom.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -845,7 +845,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(archivesPerson) || StringUtils.isBlank(archivesPerson.get(String.valueOf(e)))) ? "0" : archivesPerson.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -921,7 +921,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(finalArchivesCom) || StringUtils.isBlank(finalArchivesCom.get(String.valueOf(e)))) ? "0" : finalArchivesCom.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -1014,7 +1014,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(archivesPerson) || StringUtils.isBlank(archivesPerson.get(String.valueOf(e)))) ? "0" : archivesPerson.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -1090,7 +1090,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(finalArchivesCom) || StringUtils.isBlank(finalArchivesCom.get(String.valueOf(e)))) ? "0" : finalArchivesCom.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -1596,7 +1596,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(archivesPerson) || StringUtils.isBlank(archivesPerson.get(String.valueOf(e)))) ? "0" : archivesPerson.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (po.getPaymentCycle() != null && po.getPaymentCycle() == 1) {
|
||||
|
|
@ -1665,7 +1665,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(finalArchivesCom) || StringUtils.isBlank(finalArchivesCom.get(String.valueOf(e)))) ? "0" : finalArchivesCom.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -1746,7 +1746,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(archivesPerson) || StringUtils.isBlank(archivesPerson.get(String.valueOf(e)))) ? "0" : archivesPerson.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -1814,7 +1814,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(finalArchivesCom) || StringUtils.isBlank(finalArchivesCom.get(String.valueOf(e)))) ? "0" : finalArchivesCom.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -1899,7 +1899,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(archivesPerson) || StringUtils.isBlank(archivesPerson.get(String.valueOf(e)))) ? "0" : archivesPerson.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -1968,7 +1968,7 @@ public class SIAccountBiz extends Service {
|
|||
BigDecimal paymentProportion = new BigDecimal(StringUtils.isBlank(po.getPaymentProportion()) ? "0" : po.getPaymentProportion()).divide(new BigDecimal("100"));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(finalArchivesCom) || StringUtils.isBlank(finalArchivesCom.get(String.valueOf(e)))) ? "0" : finalArchivesCom.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -2056,7 +2056,7 @@ public class SIAccountBiz extends Service {
|
|||
// BigDecimal paymentNum = new BigDecimal(archivesPerson.get(String.valueOf(e)));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(archivesPerson) || StringUtils.isBlank(archivesPerson.get(String.valueOf(e)))) ? "0" : archivesPerson.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
@ -2127,7 +2127,7 @@ public class SIAccountBiz extends Service {
|
|||
// BigDecimal paymentNum = SalaryEntityUtil.string2BigDecimalDefault0(archivesCom.get(String.valueOf(e)));
|
||||
BigDecimal paymentNum = new BigDecimal((ObjectUtil.isEmpty(archivesCom) || StringUtils.isBlank(archivesCom.get(String.valueOf(e)))) ? "0" : archivesCom.get(String.valueOf(e)));
|
||||
BigDecimal fixedCost = StringUtils.isBlank(po.getFixedCost()) ? new BigDecimal("0") : new BigDecimal(po.getFixedCost());
|
||||
Integer newScale = po.getValidNum() == null ? 0 : po.getValidNum();
|
||||
Integer newScale = po.getValidNum() == null ? 2 : po.getValidNum();
|
||||
// BigDecimal result = SalaryEntityUtil.carryRule(newScale, po.getRententionRule(), paymentNum.multiply(paymentProportion).add(fixedCost));
|
||||
BigDecimal result = new BigDecimal("0");
|
||||
if (Objects.equals(po.getPaymentCycle(), 1)) {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import com.engine.salary.entity.sischeme.param.InsuranceSchemeReqParam;
|
|||
import com.engine.salary.entity.sischeme.po.InsuranceSchemeDetailPO;
|
||||
import com.engine.salary.entity.sischeme.po.InsuranceSchemePO;
|
||||
import com.engine.salary.entity.sischeme.vo.InsuranceSchemeFormVO;
|
||||
import com.engine.salary.enums.SalaryRoundingModeEnum;
|
||||
import com.engine.salary.enums.sicategory.*;
|
||||
import com.engine.salary.exception.SalaryRunTimeException;
|
||||
import com.engine.salary.mapper.siaccount.SIAccountUtilMapper;
|
||||
|
|
@ -78,7 +79,8 @@ public class SISchemeBiz extends Service {
|
|||
.insuranceId(item.getId())
|
||||
.insuranceName(item.getInsuranceName())
|
||||
.paymentScope(e.getDefaultLabel())
|
||||
.rententionRule(String.valueOf(RententionRuleEnum.ROUND.getValue()))
|
||||
.rententionRule(String.valueOf(SalaryRoundingModeEnum.ROUNDING.getValue()))
|
||||
.validNum(2)
|
||||
.cycleSetting("000000000000")
|
||||
.paymentCycle("0")
|
||||
.accountType("0")
|
||||
|
|
@ -96,7 +98,7 @@ public class SISchemeBiz extends Service {
|
|||
insuranceSchemeDetailDTO.setInsuranceId(insuranceSchemeDetailPO.getInsuranceId());
|
||||
insuranceSchemeDetailDTO.setPaymentScopeValue(insuranceSchemeDetailPO.getPaymentScope());
|
||||
insuranceSchemeDetailDTO.setPrimaryId(insuranceSchemeDetailPO.getPrimaryId());
|
||||
insuranceSchemeDetailDTO.setValidNum(insuranceSchemeDetailPO.getValidNum());
|
||||
insuranceSchemeDetailDTO.setValidNum(insuranceSchemeDetailPO.getValidNum() == null ? 2 : insuranceSchemeDetailPO.getValidNum());
|
||||
|
||||
if (insuranceSchemeDetailPO.getIsPayment() != null) {
|
||||
insuranceSchemeDetailDTO.setIsPayment(Objects.equals(insuranceSchemeDetailPO.getIsPayment(), IsPaymentEnum.YES.getValue()));
|
||||
|
|
@ -439,7 +441,7 @@ public class SISchemeBiz extends Service {
|
|||
.primaryId(batchPO.getId())
|
||||
.rententionRule(item.getRententionRule())
|
||||
.upperLimit(item.getUpperLimit())
|
||||
.validNum(item.getValidNum())
|
||||
.validNum(item.getValidNum()==null?2:item.getValidNum())
|
||||
.build()
|
||||
).collect(Collectors.toList());
|
||||
encryptUtil.encryptList(detailPOS, InsuranceSchemeDetailPO.class);
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import java.util.Map;
|
|||
* @Date 2022/3/8
|
||||
* @Version V1.0
|
||||
**/
|
||||
@Deprecated
|
||||
public class SISchemeCopyCmd extends AbstractCommonCommand<Map<String, Object>> {
|
||||
|
||||
public SISchemeCopyCmd(Map<String, Object> params, User user) {
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import java.util.Map;
|
|||
* @Date 2022/3/8
|
||||
* @Version V1.0
|
||||
**/
|
||||
@Deprecated
|
||||
public class SISchemeDeleteCmd extends AbstractCommonCommand<Map<String, Object>> {
|
||||
|
||||
public SISchemeDeleteCmd(Map<String, Object> params, User user) {
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import java.util.Objects;
|
|||
* @Date 2022/3/7
|
||||
* @Version V1.0
|
||||
**/
|
||||
@Deprecated
|
||||
public class SISchemeGetFormCmd extends AbstractCommonCommand<Map<String, Object>> {
|
||||
|
||||
public SISchemeGetFormCmd(Map<String, Object> params, User user) {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import java.util.Map;
|
|||
* @Date 2022/3/8
|
||||
* @Version V1.0
|
||||
**/
|
||||
@Deprecated
|
||||
public class SISchemeInsertCmd extends AbstractCommonCommand<Map<String, Object>> {
|
||||
|
||||
public SISchemeInsertCmd(Map<String, Object> params, User user) {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import java.util.Objects;
|
|||
* @Date 2022/3/10
|
||||
* @Version V1.0
|
||||
**/
|
||||
@Deprecated
|
||||
public class SISchemeListCmd extends AbstractCommonCommand<Map<String, Object>> {
|
||||
|
||||
public SISchemeListCmd(Map<String, Object> params, User user) {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import java.util.Map;
|
|||
* @Date 2022/3/8
|
||||
* @Version V1.0
|
||||
**/
|
||||
@Deprecated
|
||||
public class SISchemeUpdateCmd extends AbstractCommonCommand<Map<String, Object>> {
|
||||
|
||||
public SISchemeUpdateCmd(Map<String, Object> params, User user) {
|
||||
|
|
|
|||
|
|
@ -46,6 +46,14 @@ public class AESEncryptUtil {
|
|||
if (encryptStr.startsWith(SalarySysConstant.PRE_SIGN_ENCRYPT)) {
|
||||
encryptStr = encryptStr.substring(4, encryptStr.length());
|
||||
return AES.decrypt(encryptStr, aesEncryptScrect);
|
||||
} else if (isNumeric(encryptStr) ||
|
||||
checkHaveChinese(encryptStr) ||
|
||||
encryptStr.startsWith("{") ||
|
||||
encryptStr.contains("-") ||
|
||||
encryptStr.contains(".") ||
|
||||
"null".equals(encryptStr) ||
|
||||
StringUtils.isBlank(encryptStr)) {
|
||||
return encryptStr;
|
||||
} else {
|
||||
return AES.decrypt(encryptStr, aesEncryptScrect);
|
||||
}
|
||||
|
|
@ -59,7 +67,7 @@ public class AESEncryptUtil {
|
|||
* @param encryptStr 加密字符串
|
||||
* @return 解密字符串
|
||||
*/
|
||||
public static String closeEncryptSetting(String encryptStr,SalarySysConfPO sysConfPo) {
|
||||
public static String closeEncryptSetting(String encryptStr, SalarySysConfPO sysConfPo) {
|
||||
if (encryptStr == null) {
|
||||
return null;
|
||||
} else {
|
||||
|
|
@ -67,9 +75,13 @@ public class AESEncryptUtil {
|
|||
if (encryptStr.startsWith(SalarySysConstant.PRE_SIGN_ENCRYPT)) {
|
||||
encryptStr = encryptStr.substring(4, encryptStr.length());
|
||||
return AES.decrypt(encryptStr, aesEncryptScrect);
|
||||
} else if (isNumeric(encryptStr) || checkHaveChinese(encryptStr) || encryptStr.startsWith("{") || encryptStr.contains("-") || encryptStr.contains(".")) {
|
||||
return encryptStr;
|
||||
} else if ("null".equals(encryptStr) || StringUtils.isBlank(encryptStr)) {
|
||||
} else if (isNumeric(encryptStr) ||
|
||||
checkHaveChinese(encryptStr) ||
|
||||
encryptStr.startsWith("{") ||
|
||||
encryptStr.contains("-") ||
|
||||
encryptStr.contains(".") ||
|
||||
"null".equals(encryptStr) ||
|
||||
StringUtils.isBlank(encryptStr)) {
|
||||
return encryptStr;
|
||||
} else if (sysConfPo == null || sysConfPo.getConfValue().equals(OpenEnum.OFF.getValue())) {
|
||||
return AES.decrypt(encryptStr, aesEncryptScrect);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@ import lombok.Builder;
|
|||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 数据采集-专项附加扣除一键累计参数
|
||||
**/
|
||||
|
|
@ -14,4 +17,8 @@ import lombok.NoArgsConstructor;
|
|||
@AllArgsConstructor
|
||||
public class AddDeductionAutoAddParam {
|
||||
String yearMonth = "";
|
||||
|
||||
Date yearMonthDate;
|
||||
|
||||
List<Long> taxAgentIds;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -427,7 +427,6 @@ public class SalaryArchiveExcelBO extends Service {
|
|||
Map<String, String> errorMessageMap = Maps.newHashMap();
|
||||
errorMessageMap.put("message", rowindex + "个税扣缴义务人不存在或不在权限范围内");
|
||||
excelComments.add(errorMessageMap);
|
||||
// SalaryArchiveExcelBO.createExcelComment(excelComments, taxAgentRangeMsg, errorCount + 1, errorCount + 1, 0, 0);
|
||||
isError = true;
|
||||
return isError;
|
||||
} else if (taxAgentNameMap.size() == 0) {
|
||||
|
|
@ -465,14 +464,15 @@ public class SalaryArchiveExcelBO extends Service {
|
|||
taxAgentRangeSaveParam.setTargetParams(Collections.singletonList(taxAgentSubAdminRangeTargetParam));
|
||||
taxAgentRangeSaveParam.setSync(true);
|
||||
importHandleParam.setTaxAgentRanges(Collections.singletonList(taxAgentRangeSaveParam));
|
||||
} else {
|
||||
Map<String, String> errorMessageMap = Maps.newHashMap();
|
||||
errorMessageMap.put("message", rowindex + taxAgentRangeMsg);
|
||||
excelComments.add(errorMessageMap);
|
||||
// SalaryArchiveExcelBO.createExcelComment(excelComments, taxAgentRangeMsg, errorCount + 1, errorCount + 1, 0, 0);
|
||||
isError = true;
|
||||
return isError;
|
||||
}
|
||||
// else {
|
||||
// Map<String, String> errorMessageMap = Maps.newHashMap();
|
||||
// errorMessageMap.put("message", rowindex + taxAgentRangeMsg);
|
||||
// excelComments.add(errorMessageMap);
|
||||
//// SalaryArchiveExcelBO.createExcelComment(excelComments, taxAgentRangeMsg, errorCount + 1, errorCount + 1, 0, 0);
|
||||
// isError = true;
|
||||
// return isError;
|
||||
// }
|
||||
} else {
|
||||
// employeeId = optionalTaxAgentEmp.get().getEmployeeId();
|
||||
// 除了定薪中的初始化,其他导入存在相同的取第一条
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ public class InsuranceSchemeBO {
|
|||
.cycleSetting(item.getCycleSetting())
|
||||
.accountType(Integer.parseInt(item.getAccountType()))
|
||||
.updateTime(new Date())
|
||||
.validNum(item.getValidNum())
|
||||
.validNum(item.getValidNum()==null ? 2 : item.getValidNum())
|
||||
.build()
|
||||
).collect(Collectors.toList());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,14 +6,7 @@ import com.engine.salary.enums.BaseEnum;
|
|||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 进位规则枚举
|
||||
* <p>Copyright: Copyright (c) 2022</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
@Deprecated
|
||||
public enum RententionRuleEnum implements BaseEnum<Integer> {
|
||||
ROUND(BigDecimal.ROUND_HALF_UP, "四舍五入", 84505),
|
||||
CEIL(BigDecimal.ROUND_UP, "向上舍入", 84506),
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ public interface EmployMapper {
|
|||
DeptInfo getDeptInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 获取大于离职日期的人员信息
|
||||
* 获取大于离职日期的 离职、退休、解聘人员信息
|
||||
* @return
|
||||
*/
|
||||
List<DataCollectionEmployee> listByDismissDate(String dismissDate);
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@
|
|||
e.mobile as mobile,
|
||||
e.enddate as dismissdate
|
||||
from hrmresource e
|
||||
where e.status not in (7)
|
||||
where e.status in (4,5,6)
|
||||
AND e.enddate >= #{dismissDate}
|
||||
</select>
|
||||
|
||||
|
|
|
|||
|
|
@ -478,7 +478,7 @@ public class SalaryStatisticsReportWrapper extends Service {
|
|||
|
||||
List<SalaryItemPO> itemList = getSalaryItemService(user).listByIds(salaryItemIds);
|
||||
// 列表columns
|
||||
List<WeaTableColumn> weaTableColumns = buildDataPerspectiveTableColumns(itemList);
|
||||
List<WeaTableColumn> weaTableColumns = buildDataPerspectiveTableColumns(itemList, salaryItemIds);
|
||||
|
||||
WeaTable table = new WeaTable();
|
||||
String pageId = "a4f85an7-9576-4125-adn9-7d06e7sy69f2";
|
||||
|
|
@ -534,7 +534,7 @@ public class SalaryStatisticsReportWrapper extends Service {
|
|||
|
||||
List<SalaryItemPO> itemList = getSalaryItemService(user).listByIds(salaryItemIds);
|
||||
// 表格表头
|
||||
List<WeaTableColumn> weaTableColumns = buildDataPerspectiveTableColumns(itemList);
|
||||
List<WeaTableColumn> weaTableColumns = buildDataPerspectiveTableColumns(itemList, salaryItemIds);
|
||||
List<Object> columns = new ArrayList<>();
|
||||
for (WeaTableColumn column : weaTableColumns) {
|
||||
columns.add(column.getText());
|
||||
|
|
@ -593,7 +593,8 @@ public class SalaryStatisticsReportWrapper extends Service {
|
|||
}
|
||||
}
|
||||
|
||||
private List<WeaTableColumn> buildDataPerspectiveTableColumns(List<SalaryItemPO> salaryItems) {
|
||||
private List<WeaTableColumn> buildDataPerspectiveTableColumns(List<SalaryItemPO> salaryItems, List<Long> salaryItemIds) {
|
||||
Map<Long, SalaryItemPO> salaryItemMap = SalaryEntityUtil.convert2Map(salaryItems, SalaryItemPO::getId);
|
||||
// 表格表头
|
||||
List<WeaTableColumn> columns = new ArrayList<>();
|
||||
columns.add(new WeaTableColumn("100px", SalaryI18nUtil.getI18nLabel(87614, "姓名"), "userName"));
|
||||
|
|
@ -602,10 +603,13 @@ public class SalaryStatisticsReportWrapper extends Service {
|
|||
columns.add(new WeaTableColumn("100px", SalaryI18nUtil.getI18nLabel(86184, "个税扣缴义务人"), "taxAgent"));
|
||||
columns.add(new WeaTableColumn("100px", SalaryI18nUtil.getI18nLabel(86184, "账套"), "salarySob"));
|
||||
// columns.add(new WeaTableColumn("100px", SalaryI18nUtil.getI18nLabel(86184, "次数"), "acctTimes").setDisplay(WeaBoolAttr.FALSE));
|
||||
salaryItems.forEach(item -> {
|
||||
WeaTableColumn weaTableColumn = new WeaTableColumn("100px", item.getName(), item.getId() + SalaryConstant.DYNAMIC_SUFFIX);
|
||||
weaTableColumn.setOtherpara(item.getDataType());
|
||||
columns.add(weaTableColumn);
|
||||
salaryItemIds.forEach(itemId -> {
|
||||
SalaryItemPO item = salaryItemMap.get(itemId);
|
||||
if (item != null) {
|
||||
WeaTableColumn weaTableColumn = new WeaTableColumn("100px", item.getName(), item.getId() + SalaryConstant.DYNAMIC_SUFFIX);
|
||||
weaTableColumn.setOtherpara(item.getDataType());
|
||||
columns.add(weaTableColumn);
|
||||
}
|
||||
});
|
||||
return columns;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ public interface AddUpDeductionService {
|
|||
* @return void
|
||||
* @author lfc
|
||||
*/
|
||||
String autoAddAll(Date yearMonth, Boolean isAdmin);
|
||||
String autoAddAll(Date yearMonth, Boolean isAdmin, List<Long> taxAgentIds);
|
||||
|
||||
/**
|
||||
* 在线获取数据
|
||||
|
|
|
|||
|
|
@ -794,7 +794,7 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
|||
}
|
||||
|
||||
@Override
|
||||
public String autoAddAll(Date yearMonth, Boolean isAdmin) {
|
||||
public String autoAddAll(Date yearMonth, Boolean isAdmin, List<Long> taxAgentIds) {
|
||||
String cacheKey = "addUpDeduction_autoAddAll_processing";
|
||||
Object objVal = Util_DataCache.getObjVal(cacheKey);
|
||||
if (objVal != null) {
|
||||
|
|
@ -811,6 +811,10 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
|||
} else {
|
||||
taxAgents = getTaxAgentService(user).listAllTaxAgentsAsAdmin((long) user.getUID());
|
||||
}
|
||||
// 过滤个税扣缴义务人选择框
|
||||
if (CollectionUtils.isNotEmpty(taxAgentIds)) {
|
||||
taxAgents = taxAgents.stream().filter(taxAgent -> taxAgentIds.contains(taxAgent.getId())).collect(Collectors.toList());
|
||||
}
|
||||
LocalDateTime yearMonthTime = DateUtil.toLocalDateTime(yearMonth);
|
||||
//设置时间到下一年1月1号
|
||||
Instant instant = yearMonthTime.plusYears(1L)
|
||||
|
|
@ -1039,6 +1043,10 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
|||
if (CollectionUtils.isEmpty(taxAgentIdsAsAdmin)) {
|
||||
return new PageInfo<>(AddUpDeductionDTO.class);
|
||||
}
|
||||
// 过滤义务人筛选框
|
||||
if (CollectionUtils.isNotEmpty(queryParam.getTaxAgentIds())) {
|
||||
taxAgentIdsAsAdmin = taxAgentIdsAsAdmin.stream().filter(id -> queryParam.getTaxAgentIds().contains(id)).collect(Collectors.toList());
|
||||
}
|
||||
queryParam.setTaxAgentIds(taxAgentIdsAsAdmin);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import com.api.browser.util.ConditionType;
|
|||
import com.api.formmode.mybatis.util.SqlProxyHandle;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.hrmelog.entity.dto.LoggerContext;
|
||||
import com.engine.salary.biz.AddUpSituationBiz;
|
||||
import com.engine.salary.config.SalaryElogConfig;
|
||||
import com.engine.salary.constant.SzyhApiConstant;
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ public class FormulaRunServiceImpl extends Service implements FormulaRunService
|
|||
String datasourceJson = map.getOrDefault("datasource", "");
|
||||
if (StringUtils.isNotBlank(datasourceJson)) {
|
||||
Map<String, String> datasourceIdMap = JsonUtil.parseMap(datasourceJson, String.class);
|
||||
String datasourceIdNode = datasourceIdMap.getOrDefault("datasourceId","");
|
||||
String datasourceIdNode = datasourceIdMap.getOrDefault("datasourceId", "");
|
||||
if (StringUtils.isNotBlank(datasourceIdNode)) {
|
||||
datasourceId = datasourceIdNode;
|
||||
}
|
||||
|
|
@ -216,6 +216,10 @@ public class FormulaRunServiceImpl extends Service implements FormulaRunService
|
|||
}
|
||||
if (DataType.NUMBER.equals(v.getFieldType()) && NumberUtils.isCreatable(v.getContent())) {
|
||||
context.put(v.getFieldId(), new BigDecimal(v.getContent()));
|
||||
} else if (v.getContent().startsWith("[") && v.getContent().endsWith("]")) {
|
||||
String content = v.getContent().substring(1);
|
||||
content = content.substring(0, content.length() - 1);
|
||||
context.put(v.getFieldId(), content.split(","));
|
||||
} else {
|
||||
context.put(v.getFieldId(), v.getContent());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ import com.engine.salary.entity.taxagent.param.TaxAgentManageRangeSaveParam;
|
|||
import com.engine.salary.entity.taxagent.param.TaxAgentRangeSaveParam;
|
||||
import com.engine.salary.entity.taxagent.po.TaxAgentPO;
|
||||
import com.engine.salary.enums.OperateTypeEnum;
|
||||
import com.engine.salary.enums.SalaryRoundingModeEnum;
|
||||
import com.engine.salary.enums.UserStatusEnum;
|
||||
import com.engine.salary.enums.salarysob.TargetTypeEnum;
|
||||
import com.engine.salary.enums.siaccount.EmployeeStatusEnum;
|
||||
|
|
@ -182,7 +183,6 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
|
|||
|
||||
@Override
|
||||
public Map<String, Object> getForm(Map<String, Object> params) {
|
||||
// return commandExecutor.execute(new SISchemeGetFormCmd(params, user));
|
||||
Map<String, Object> apidatas = new HashMap<>(16);
|
||||
|
||||
Long id = null;
|
||||
|
|
@ -190,7 +190,6 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
|
|||
id =Long.valueOf(Util.null2String(params.get("id")));
|
||||
}
|
||||
WelfareTypeEnum welfareTypeEnum = (WelfareTypeEnum)params.get("welfareTypeEnum");
|
||||
// InsuranceSchemeFormVO form = siSchemeBiz.getForm(id, welfareTypeEnum);
|
||||
InsuranceSchemeFormVO form = getForm(id, welfareTypeEnum);
|
||||
apidatas.put("form",form);
|
||||
//记录操作日志
|
||||
|
|
@ -2402,7 +2401,8 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
|
|||
.insuranceId(item.getId())
|
||||
.insuranceName(item.getInsuranceName())
|
||||
.paymentScope(e.getDefaultLabel())
|
||||
.rententionRule(String.valueOf(RententionRuleEnum.ROUND.getValue()))
|
||||
.rententionRule(String.valueOf(SalaryRoundingModeEnum.ROUNDING.getValue()))
|
||||
.validNum(2)
|
||||
.cycleSetting("000000000000")
|
||||
.paymentCycle("0")
|
||||
.accountType("0")
|
||||
|
|
@ -2420,7 +2420,7 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
|
|||
insuranceSchemeDetailDTO.setInsuranceId(insuranceSchemeDetailPO.getInsuranceId());
|
||||
insuranceSchemeDetailDTO.setPaymentScopeValue(insuranceSchemeDetailPO.getPaymentScope());
|
||||
insuranceSchemeDetailDTO.setPrimaryId(insuranceSchemeDetailPO.getPrimaryId());
|
||||
insuranceSchemeDetailDTO.setValidNum(insuranceSchemeDetailPO.getValidNum());
|
||||
insuranceSchemeDetailDTO.setValidNum(insuranceSchemeDetailPO.getValidNum() == null ? 2 : insuranceSchemeDetailPO.getValidNum());
|
||||
|
||||
if (insuranceSchemeDetailPO.getIsPayment() != null) {
|
||||
insuranceSchemeDetailDTO.setIsPayment(Objects.equals(insuranceSchemeDetailPO.getIsPayment(), IsPaymentEnum.YES.getValue()));
|
||||
|
|
@ -2758,7 +2758,7 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
|
|||
.primaryId(batchPO.getId())
|
||||
.rententionRule(item.getRententionRule())
|
||||
.upperLimit(item.getUpperLimit())
|
||||
.validNum(item.getValidNum())
|
||||
.validNum(item.getValidNum()==null?2:item.getValidNum())
|
||||
.build()
|
||||
).collect(Collectors.toList());
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.engine.salary.service.impl;
|
||||
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
import com.api.formmode.mybatis.util.SqlProxyHandle;
|
||||
import com.cloudstore.dev.api.util.Util_DataCache;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
|
|
@ -411,7 +412,7 @@ public class SalaryAcctExcelServiceImpl extends Service implements SalaryAcctExc
|
|||
List<Object> row = Lists.newArrayListWithExpectedSize(headerColumnGroup.size());
|
||||
for (WeaTableColumnGroup weaTableColumn : headerColumnGroup) {
|
||||
String fieldType = (String) map.getOrDefault(weaTableColumn.getColumn().toString() + DATA_TYPE_SUFFIX, StringUtils.EMPTY);
|
||||
if (StringUtils.equals("number", fieldType)) {
|
||||
if (StringUtils.equals("number", fieldType) && map.get(weaTableColumn.getColumn()) != null && NumberUtil.isNumber(map.get(weaTableColumn.getColumn()).toString())) {
|
||||
row.add(new BigDecimal(StringUtils.isBlank(map.get(weaTableColumn.getColumn()).toString()) ? "0" : map.get(weaTableColumn.getColumn()).toString()));
|
||||
} else {
|
||||
row.add(map.getOrDefault(weaTableColumn.getColumn(), StringUtils.EMPTY));
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import weaver.hrm.User;
|
|||
import weaver.interfaces.schedule.BaseCronJob;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
|
|
@ -31,6 +32,6 @@ public class AutoAddAllSpecialAddDeductionJob extends BaseCronJob {
|
|||
if(StringUtils.isNotBlank(salaryTaxMonth)){
|
||||
localDate = localDate.plusMonths(Integer.valueOf(salaryTaxMonth.trim()));
|
||||
}
|
||||
getAddUpDeductionService(null).autoAddAll(DateUtil.beginOfMonth(SalaryDateUtil.localDateToDate(localDate)), Boolean.TRUE);
|
||||
getAddUpDeductionService(null).autoAddAll(DateUtil.beginOfMonth(SalaryDateUtil.localDateToDate(localDate)), Boolean.TRUE, Collections.emptyList());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ public class SalaryPageUtil {
|
|||
|
||||
/**
|
||||
* 自适应文字长度
|
||||
*
|
||||
* @param chars
|
||||
* @param width
|
||||
* @return
|
||||
|
|
@ -105,8 +106,8 @@ public class SalaryPageUtil {
|
|||
return width + "";
|
||||
}
|
||||
Rectangle2D bounds = font.getStringBounds(chars, frc);
|
||||
int pxLength = (int) Math.ceil(bounds.getWidth());
|
||||
return pxLength + 55 + "";
|
||||
int pxLength = (int) Math.ceil(bounds.getWidth()) + 55;
|
||||
return pxLength < 90 ? 90+"" : pxLength+"";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -375,8 +375,9 @@ public class AddUpDeductionController {
|
|||
} else {
|
||||
date = DateUtil.beginOfMonth(new Date());
|
||||
}
|
||||
param.setYearMonthDate(date);
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return new ResponseResult<Date, String>(user).run(getAddUpDeductionWrapper(user)::autoAddAll, date);
|
||||
return new ResponseResult<AddDeductionAutoAddParam, String>(user).run(getAddUpDeductionWrapper(user)::autoAddAll, param);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -169,14 +169,15 @@ public class AddUpDeductionWrapper extends Service {
|
|||
return getAddUpDeductionService(user).getAddUpDeduction(param);
|
||||
}
|
||||
|
||||
public String autoAddAll(Date yearMonth) {
|
||||
public String autoAddAll(AddDeductionAutoAddParam param) {
|
||||
Date yearMonth = param.getYearMonthDate();
|
||||
if (isLog) {
|
||||
log.info("一键累计, 操作人 「{}」", user.getUsername());
|
||||
}
|
||||
if (yearMonth == null) {
|
||||
throw new SalaryRunTimeException("一键累计传入日期格式错误");
|
||||
}
|
||||
return getAddUpDeductionService(user).autoAddAll(yearMonth, null);
|
||||
return getAddUpDeductionService(user).autoAddAll(yearMonth, null, param.getTaxAgentIds());
|
||||
}
|
||||
|
||||
public Map<String, Object> onlineRequest(AddUpDeductionMonthTaxAgentParam param) {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ import com.engine.salary.util.SalaryEntityUtil;
|
|||
import com.engine.salary.util.SalaryI18nUtil;
|
||||
import com.engine.salary.util.page.PageInfo;
|
||||
import com.engine.salary.util.valid.ValidUtil;
|
||||
import com.engine.salary.wrapper.proxy.SalaryAcctResultWrapperProxy;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang.math.NumberUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
|
@ -37,7 +38,7 @@ import java.util.*;
|
|||
* @version 1.0
|
||||
**/
|
||||
@Slf4j
|
||||
public class SalaryAcctResultWrapper extends Service {
|
||||
public class SalaryAcctResultWrapper extends Service implements SalaryAcctResultWrapperProxy {
|
||||
|
||||
private SalaryAcctResultService getSalaryAcctResultService(User user) {
|
||||
return ServiceUtil.getService(SalaryAcctResultServiceImpl.class, user);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
package com.engine.salary.wrapper.proxy;
|
||||
|
||||
import com.engine.salary.entity.salaryacct.dto.SalaryAcctResultDetailDTO;
|
||||
import com.engine.salary.entity.salaryacct.dto.SalaryAcctResultListColumnDTO;
|
||||
import com.engine.salary.entity.salaryacct.param.*;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface SalaryAcctResultWrapperProxy {
|
||||
Map<String, Object> listPage(SalaryAcctResultQueryParam queryParam);
|
||||
|
||||
SalaryAcctResultDetailDTO getForm(Long salaryAcctEmployeeId);
|
||||
|
||||
Map<String, SalaryAcctResultListColumnDTO> getColumnBySalaryAcctRecordId(Long salaryAcctRecordId);
|
||||
|
||||
void save(SalaryAcctResultSaveParam saveParam);
|
||||
|
||||
void updateLockStatusByParam(SalaryAcctResultUpdateLockStatusParam updateParam);
|
||||
|
||||
void calculate(SalaryAcctCalculateParam calculateParam);
|
||||
|
||||
void batchUpdate(SalaryAcctResultBatchUpdateParam param);
|
||||
}
|
||||
Loading…
Reference in New Issue