个税申报
This commit is contained in:
parent
d1b6a78238
commit
917c9f87c1
|
|
@ -56,7 +56,7 @@ public class TaxPaymentWithholdingServiceImpl extends AbstractTaxPaymentService
|
|||
}
|
||||
|
||||
List<TaxDeclareStatusPO> statuses = getTaxDeclareRecordService(user).getTaxDeclareStatusByTaxDeclareRecordId(param.getTaxDeclareRecordId());
|
||||
statuses.forEach(status -> {
|
||||
for (TaxDeclareStatusPO status:statuses) {
|
||||
WithholdingFeedbackResponse.Feedback feedback = Optional.of(feedbackResponse)
|
||||
.map(WithholdingFeedbackResponse::getBody)
|
||||
.map(body -> {
|
||||
|
|
@ -80,6 +80,7 @@ public class TaxPaymentWithholdingServiceImpl extends AbstractTaxPaymentService
|
|||
Integer paymentStatus = SalaryEntityUtil.getIntValue(feedback.getJkzt(), -1);
|
||||
TaxPaymentStatusEnum paymentStatusEnum = SalaryEnumUtil.enumMatchByValue(paymentStatus, TaxPaymentStatusEnum.class);
|
||||
if (paymentStatusEnum != TaxPaymentStatusEnum.SUCCESS) {
|
||||
// fixme
|
||||
throw new SalaryRunTimeException(String.format("缴款失败,失败原因:%s,申报状态:%s", feedback.getJksbyy(), feedback.getSbzt()));
|
||||
}
|
||||
// 累计实缴金额
|
||||
|
|
@ -99,7 +100,7 @@ public class TaxPaymentWithholdingServiceImpl extends AbstractTaxPaymentService
|
|||
status.setTaxPurePaidAmount(taxPurePaidAmount.add(taxPayAmount).toString());
|
||||
status.setTaxPayAmount(BigDecimal.ZERO.toString());
|
||||
getTaxDeclareStatusService(user).updateTaxDeclareStatus(status);
|
||||
});
|
||||
}
|
||||
|
||||
TaxAmountFormDTO taxAmountFormDTO = queryTaxAmount(param);
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ public class TaxPaymentWithholdingVoucherServiceImpl extends AbstractTaxPaymentS
|
|||
String url = apiConfig.getHost() + api;
|
||||
Map<String, Object> requestParam = DataCollectionBO.getApiBaseQueryParams(returnPO, taxAgentName, SalaryDateUtil.getFormatYYYYMM(param.getTaxYearMonth()));
|
||||
if (syncStatus) {
|
||||
requestParam.put("bblx", "1");
|
||||
requestParam.put("bblx", param.getReportType());
|
||||
}
|
||||
return postRequest(apiConfig, url, requestParam, clazz);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue