在线获取累计专项附加扣除
This commit is contained in:
parent
96bfdf05ed
commit
9867728d2e
|
|
@ -350,8 +350,8 @@ public class DataCollectionBO {
|
||||||
boolean martyrDependents = SalaryOnOffEnum.ON.getValue().equals(employeeDeclarePO.getMartyrDependents());
|
boolean martyrDependents = SalaryOnOffEnum.ON.getValue().equals(employeeDeclarePO.getMartyrDependents());
|
||||||
employeeMap.computeIfAbsent("sfcj", e -> SalaryOnOffEnum.parseByValue(employeeDeclarePO.getDisability()).getDefaultLabel());
|
employeeMap.computeIfAbsent("sfcj", e -> SalaryOnOffEnum.parseByValue(employeeDeclarePO.getDisability()).getDefaultLabel());
|
||||||
employeeMap.computeIfAbsent("cjzh", e -> disability ? employeeDeclarePO.getDisabilityCardNo() : null);
|
employeeMap.computeIfAbsent("cjzh", e -> disability ? employeeDeclarePO.getDisabilityCardNo() : null);
|
||||||
employeeMap.computeIfAbsent("sfls", e->SalaryOnOffEnum.parseByValue(employeeDeclarePO.getMartyrDependents()).getDefaultLabel());
|
employeeMap.computeIfAbsent("sfls", e -> SalaryOnOffEnum.parseByValue(employeeDeclarePO.getMartyrDependents()).getDefaultLabel());
|
||||||
employeeMap.computeIfAbsent("lszh", e-> martyrDependents ? employeeDeclarePO.getMartyrDependentsCardNo() : null);
|
employeeMap.computeIfAbsent("lszh", e -> martyrDependents ? employeeDeclarePO.getMartyrDependentsCardNo() : null);
|
||||||
employeeMap.computeIfAbsent("sfgl", e -> SalaryOnOffEnum.parseByValue(employeeDeclarePO.getLonelyOld()).getDefaultLabel());
|
employeeMap.computeIfAbsent("sfgl", e -> SalaryOnOffEnum.parseByValue(employeeDeclarePO.getLonelyOld()).getDefaultLabel());
|
||||||
employeeMap.computeIfAbsent("sfzdw", e -> SalaryOnOffEnum.parseByValue(employeeDeclarePO.getDeductExpenses()).getDefaultLabel());
|
employeeMap.computeIfAbsent("sfzdw", e -> SalaryOnOffEnum.parseByValue(employeeDeclarePO.getDeductExpenses()).getDefaultLabel());
|
||||||
employeeList.add(employeeMap);
|
employeeList.add(employeeMap);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package com.engine.salary.entity.datacollection.param;
|
package com.engine.salary.entity.datacollection.param;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
@ -17,6 +18,7 @@ import java.util.Date;
|
||||||
public class AddUpDeductionMonthTaxAgentParam {
|
public class AddUpDeductionMonthTaxAgentParam {
|
||||||
|
|
||||||
@ApiModelProperty("税款所属期")
|
@ApiModelProperty("税款所属期")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||||
private Date declareMonth;
|
private Date declareMonth;
|
||||||
|
|
||||||
@ApiModelProperty("个税扣缴义务人的主键id")
|
@ApiModelProperty("个税扣缴义务人的主键id")
|
||||||
|
|
|
||||||
|
|
@ -38,10 +38,10 @@ public class AddUpDeductionRequestFailPO implements Serializable {
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
//创建人id", ignore = true)
|
//创建人id", ignore = true)
|
||||||
private long creator;
|
private Long creator;
|
||||||
|
|
||||||
//是否删除", ignore = true)
|
//是否删除", ignore = true)
|
||||||
private int deleteType;
|
private Integer deleteType;
|
||||||
|
|
||||||
//租户KEY", ignore = true)
|
//租户KEY", ignore = true)
|
||||||
private String tenantKey;
|
private String tenantKey;
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class AddUpDeductionRequestPO implements Serializable {
|
||||||
private static final long serialVersionUID = 1452863635879051515L;
|
private static final long serialVersionUID = 1452863635879051515L;
|
||||||
|
|
||||||
//ID
|
//ID
|
||||||
private long id;
|
private Long id;
|
||||||
|
|
||||||
//创建时间"
|
//创建时间"
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
@ -36,16 +36,16 @@ public class AddUpDeductionRequestPO implements Serializable {
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
//创建人id"
|
//创建人id"
|
||||||
private long creator;
|
private Long creator;
|
||||||
|
|
||||||
//是否删除"
|
//是否删除"
|
||||||
private int deleteType;
|
private Integer deleteType;
|
||||||
|
|
||||||
//租户KEY"
|
//租户KEY"
|
||||||
private String tenantKey;
|
private String tenantKey;
|
||||||
|
|
||||||
//乐观锁版本"
|
//乐观锁版本"
|
||||||
private int lockVersion;
|
private Integer lockVersion;
|
||||||
|
|
||||||
//查询请求ID
|
//查询请求ID
|
||||||
private Long requestId;
|
private Long requestId;
|
||||||
|
|
@ -57,7 +57,7 @@ public class AddUpDeductionRequestPO implements Serializable {
|
||||||
* @see EnumAddUpDeductionRequestStatus
|
* @see EnumAddUpDeductionRequestStatus
|
||||||
*/
|
*/
|
||||||
//请求处理状态
|
//请求处理状态
|
||||||
private int requestStatus;
|
private Integer requestStatus;
|
||||||
|
|
||||||
//税款所属期
|
//税款所属期
|
||||||
private Date taxYearMonth;
|
private Date taxYearMonth;
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,7 @@ public class TaxAgentTaxReturnPO implements Serializable {
|
||||||
|
|
||||||
|
|
||||||
//查询条件
|
//查询条件
|
||||||
|
private Collection<Long> ids;
|
||||||
private Collection<Long> taxAgentIds;
|
private Collection<Long> taxAgentIds;
|
||||||
private Collection<String> taxCodes;
|
private Collection<String> taxCodes;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1303,7 +1303,7 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
||||||
SalaryArchiveStatusEnum.STOP_FROM_PENDING.getValue())
|
SalaryArchiveStatusEnum.STOP_FROM_PENDING.getValue())
|
||||||
);
|
);
|
||||||
salaryArchiveList = salaryArchiveList.stream().filter(e -> taxAgentIdSet.contains(e.getTaxAgentId())).collect(Collectors.toList());
|
salaryArchiveList = salaryArchiveList.stream().filter(e -> taxAgentIdSet.contains(e.getTaxAgentId())).collect(Collectors.toList());
|
||||||
AddUpDeductionOnlineRequestWrapper requestWrapper = new AddUpDeductionOnlineRequestWrapper(requestPOList, salaryArchiveList, taxAgents);
|
AddUpDeductionOnlineRequestWrapper requestWrapper = new AddUpDeductionOnlineRequestWrapper(requestPOList, salaryArchiveList, taxAgents, (long) user.getUID());
|
||||||
requestWrapper.setApiConfig(apiConfig);
|
requestWrapper.setApiConfig(apiConfig);
|
||||||
return requestWrapper;
|
return requestWrapper;
|
||||||
}
|
}
|
||||||
|
|
@ -1368,7 +1368,7 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
||||||
.tenantKey(DEFAULT_TENANT_KEY)
|
.tenantKey(DEFAULT_TENANT_KEY)
|
||||||
.createTime(new Date())
|
.createTime(new Date())
|
||||||
.updateTime(new Date())
|
.updateTime(new Date())
|
||||||
.creator(user.getUID())
|
.creator((long) user.getUID())
|
||||||
.lockVersion(0)
|
.lockVersion(0)
|
||||||
.build();
|
.build();
|
||||||
getAddUpDeductionRequestMapper().insertIgnoreNull(po);
|
getAddUpDeductionRequestMapper().insertIgnoreNull(po);
|
||||||
|
|
@ -1604,21 +1604,21 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
||||||
|
|
||||||
private void persistFeedbackData(AddUpDeductionOnlineRequestWrapper requestWrapper) {
|
private void persistFeedbackData(AddUpDeductionOnlineRequestWrapper requestWrapper) {
|
||||||
if (!requestWrapper.getInsertList().isEmpty()) {
|
if (!requestWrapper.getInsertList().isEmpty()) {
|
||||||
List<List<AddUpDeduction>> insertPartition = Lists.partition(requestWrapper.getInsertList(), 1000);
|
List<List<AddUpDeduction>> insertPartition = Lists.partition(requestWrapper.getInsertList(), 100);
|
||||||
insertPartition.forEach(list -> {
|
insertPartition.forEach(list -> {
|
||||||
list = encryptUtil.encryptList(list, AddUpDeduction.class);
|
list = encryptUtil.encryptList(list, AddUpDeduction.class);
|
||||||
getAddUpDeductionMapper().insertData(list);
|
getAddUpDeductionMapper().insertData(list);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!requestWrapper.getUpdateList().isEmpty()) {
|
if (!requestWrapper.getUpdateList().isEmpty()) {
|
||||||
List<List<AddUpDeduction>> updatePartition = Lists.partition(requestWrapper.getUpdateList(), 1000);
|
List<List<AddUpDeduction>> updatePartition = Lists.partition(requestWrapper.getUpdateList(), 100);
|
||||||
updatePartition.forEach(list -> {
|
updatePartition.forEach(list -> {
|
||||||
list = encryptUtil.encryptList(list, AddUpDeduction.class);
|
list = encryptUtil.encryptList(list, AddUpDeduction.class);
|
||||||
getAddUpDeductionMapper().updateData(list);
|
getAddUpDeductionMapper().updateData(list);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!requestWrapper.getFailPOList().isEmpty()) {
|
if (!requestWrapper.getFailPOList().isEmpty()) {
|
||||||
List<List<AddUpDeductionRequestFailPO>> failPartition = Lists.partition(requestWrapper.getFailPOList(), 1000);
|
List<List<AddUpDeductionRequestFailPO>> failPartition = Lists.partition(requestWrapper.getFailPOList(), 100);
|
||||||
failPartition.forEach(list -> getAddUpDeductionRequestFailMapper().batchInsert(list));
|
failPartition.forEach(list -> getAddUpDeductionRequestFailMapper().batchInsert(list));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1643,7 +1643,7 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
||||||
.updateTime(new Date())
|
.updateTime(new Date())
|
||||||
.oldStatus(oldStatus)
|
.oldStatus(oldStatus)
|
||||||
.id(requestPO.getId())
|
.id(requestPO.getId())
|
||||||
.oldLockVersion(oldStatus)
|
.oldLockVersion(requestPO.getLockVersion())
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
// SalaryAssert.isTrue(update, SalaryI18nUtil.getI18nLabel(95828, "服务异常,请稍后重试"));
|
// SalaryAssert.isTrue(update, SalaryI18nUtil.getI18nLabel(95828, "服务异常,请稍后重试"));
|
||||||
|
|
@ -1697,7 +1697,8 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
||||||
|
|
||||||
public AddUpDeductionOnlineRequestWrapper(List<AddUpDeductionRequestPO> requestPOList,
|
public AddUpDeductionOnlineRequestWrapper(List<AddUpDeductionRequestPO> requestPOList,
|
||||||
List<SalaryArchivePO> salaryArchiveList,
|
List<SalaryArchivePO> salaryArchiveList,
|
||||||
List<TaxAgentPO> taxAgents) {
|
List<TaxAgentPO> taxAgents,
|
||||||
|
Long currentEmployeeId) {
|
||||||
this.requestFeedBackMap = new HashMap<>();
|
this.requestFeedBackMap = new HashMap<>();
|
||||||
this.requestPoMap = new HashMap<>();
|
this.requestPoMap = new HashMap<>();
|
||||||
this.insertList = new ArrayList<>();
|
this.insertList = new ArrayList<>();
|
||||||
|
|
@ -1706,7 +1707,7 @@ public class AddUpDeductionServiceImpl extends Service implements AddUpDeduction
|
||||||
this.failPOList = new ArrayList<>();
|
this.failPOList = new ArrayList<>();
|
||||||
this.salaryArchiveList = salaryArchiveList;
|
this.salaryArchiveList = salaryArchiveList;
|
||||||
this.requestPOList = requestPOList;
|
this.requestPOList = requestPOList;
|
||||||
this.tenantKey = tenantKey;
|
this.tenantKey = DEFAULT_TENANT_KEY;
|
||||||
this.currentEmployeeId = currentEmployeeId;
|
this.currentEmployeeId = currentEmployeeId;
|
||||||
this.taxAgentMap = SalaryEntityUtil.convert2Map(taxAgents, TaxAgentPO::getId, TaxAgentPO::getName);
|
this.taxAgentMap = SalaryEntityUtil.convert2Map(taxAgents, TaxAgentPO::getId, TaxAgentPO::getName);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue