个税调差累计字段对应
This commit is contained in:
parent
026fa54a0e
commit
fe4e138317
|
|
@ -283,7 +283,8 @@ public class TaxDeclareRecordServiceImpl extends Service implements TaxDeclareRe
|
|||
deleteByIds(needDeleteTaxDeclareRecordIds);
|
||||
// 保存个税申报记录
|
||||
if (CollectionUtils.isNotEmpty(newTaxDeclareRecords)) {
|
||||
getTaxDeclareRecordMapper().batchInsert(newTaxDeclareRecords);
|
||||
newTaxDeclareRecords.forEach(getTaxDeclareRecordMapper()::insertIgnoreNull);
|
||||
// getTaxDeclareRecordMapper().batchInsert(newTaxDeclareRecords);
|
||||
}
|
||||
// 保存个税申报表
|
||||
if (CollectionUtils.isNotEmpty(newTaxDeclarations)) {
|
||||
|
|
@ -431,7 +432,7 @@ public class TaxDeclareRecordServiceImpl extends Service implements TaxDeclareRe
|
|||
// 如果存在未归档的薪资核算记录,不允许生成个税申报表
|
||||
boolean notArchived = salaryAcctRecords.stream().anyMatch(salaryAcctRecordPO -> Objects.equals(salaryAcctRecordPO.getStatus(), SalaryAcctRecordStatusEnum.NOT_ARCHIVED.getValue()));
|
||||
if (notArchived) {
|
||||
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(98875, "{0}有未归档数据,请全部归档后再申报").replace("{0}", saveParam.getSalaryMonth().toString()));
|
||||
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(98875, "{0}有未归档数据,请全部归档后再申报").replace("{0}", SalaryDateUtil.getFormatYearMonth(saveParam.getSalaryMonth())));
|
||||
}
|
||||
// 查询已归档的薪资核算记录
|
||||
List<SalaryAcctRecordPO> archivedSalaryAcctRecords = salaryAcctRecords.stream().filter(salaryAcctRecordPO -> Objects.equals(salaryAcctRecordPO.getStatus(), SalaryAcctRecordStatusEnum.ARCHIVED.getValue())).collect(Collectors.toList());
|
||||
|
|
|
|||
Loading…
Reference in New Issue