人员和在线申报流量使用
This commit is contained in:
parent
d633386bbf
commit
4644f34bbb
|
|
@ -640,7 +640,7 @@ public class EmployeeDeclareServiceImpl extends Service implements EmployeeDecla
|
|||
+ "-" + e.getOrDefault("zzlx", "")
|
||||
+ "-" + e.getOrDefault("zzhm", ""));
|
||||
// 流量使用情况
|
||||
TaxDeclarationApiBillingServiceImpl.ApiFlowUpdateWrapper apiFlowUpdateWrapper = new TaxDeclarationApiBillingServiceImpl.ApiFlowUpdateWrapper(param.getTaxCycle(), apiConfig, EnumDeclareApiBusinessType.EMPLOYEE_DECLARATION);
|
||||
TaxDeclarationApiBillingServiceImpl.ApiFlowUpdateWrapper apiFlowUpdateWrapper = new TaxDeclarationApiBillingServiceImpl.ApiFlowUpdateWrapper(param.getTaxCycle(), apiConfig, EnumDeclareApiBusinessType.EMPLOYEE_DECLARATION, (long) user.getUID());
|
||||
// 查询申报的人员列表
|
||||
Date now = new Date();
|
||||
List<EmployeeDeclarePO> needUpdateEmployeeDeclares = Lists.newArrayList();
|
||||
|
|
@ -689,7 +689,6 @@ public class EmployeeDeclareServiceImpl extends Service implements EmployeeDecla
|
|||
// loggerContext.setOperatedesc(SalaryI18nUtil.getI18nLabel(156452, "获取结果反馈"));
|
||||
// employeeDeclareLoggerTemplate.write(loggerContext);
|
||||
// 更新流量统计
|
||||
//todo
|
||||
getTaxDeclarationApiBillingService(user).updateApiFlowInfo(apiFlowUpdateWrapper);
|
||||
// 报送失败的
|
||||
int declareFailSize = (int) needUpdateEmployeeDeclares.stream()
|
||||
|
|
|
|||
|
|
@ -196,11 +196,12 @@ public class TaxDeclarationApiBillingServiceImpl extends Service implements TaxD
|
|||
// 接口类型
|
||||
private EnumDeclareApiBusinessType businessType;
|
||||
|
||||
public ApiFlowUpdateWrapper(Date taxYearMonth, TaxDeclarationApiConfigPO apiConfig, EnumDeclareApiBusinessType businessType) {
|
||||
public ApiFlowUpdateWrapper(Date taxYearMonth, TaxDeclarationApiConfigPO apiConfig, EnumDeclareApiBusinessType businessType,Long currentEmployeeId) {
|
||||
this.taxYearMonth = taxYearMonth;
|
||||
this.apiFlowDetailPOList = new ArrayList<>();
|
||||
this.apiConfig = apiConfig;
|
||||
this.businessType = businessType;
|
||||
this.currentEmployeeId = currentEmployeeId;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -550,7 +550,7 @@ public class TaxDeclareRecordServiceImpl extends Service implements TaxDeclareRe
|
|||
// 删除个税申报表明细
|
||||
getTaxDeclarationValueService(user).deleteByTaxDeclareRecordIds(ids);
|
||||
|
||||
taxDeclareRecords.forEach(po->{
|
||||
taxDeclareRecords.forEach(po -> {
|
||||
// 获取当前个税扣缴义务人下的薪资账套
|
||||
List<SalarySobPO> salarySobPOS = getSalarySobService(user).listByTaxAgentId(po.getTaxAgentId());
|
||||
List<Long> salarySobIds = salarySobPOS.stream().map(SalarySobPO::getId).collect(Collectors.toList());
|
||||
|
|
@ -699,7 +699,7 @@ public class TaxDeclareRecordServiceImpl extends Service implements TaxDeclareRe
|
|||
List<EmployeeDeclarePO> employeeDeclares = getEmployeeDeclareService(user).listByTaxCycleAndTaxAgentId(taxDeclareRecord.getTaxCycle(), taxDeclareRecord.getTaxAgentId());
|
||||
Map<String, EmployeeDeclarePO> employeeInfoMap = SalaryEntityUtil.convert2Map(employeeDeclares, e -> e.getEmployeeName() + "-" + e.getCardNum());
|
||||
// 流量统计
|
||||
TaxDeclarationApiBillingServiceImpl.ApiFlowUpdateWrapper apiFlowUpdateWrapper = new TaxDeclarationApiBillingServiceImpl.ApiFlowUpdateWrapper(taxDeclareRecord.getTaxCycle(), apiConfig, EnumDeclareApiBusinessType.TAX_DECLARATION);
|
||||
TaxDeclarationApiBillingServiceImpl.ApiFlowUpdateWrapper apiFlowUpdateWrapper = new TaxDeclarationApiBillingServiceImpl.ApiFlowUpdateWrapper(taxDeclareRecord.getTaxCycle(), apiConfig, EnumDeclareApiBusinessType.TAX_DECLARATION, (long) user.getUID());
|
||||
|
||||
Date now = new Date();
|
||||
List<String> errorMsg = Lists.newArrayList();
|
||||
|
|
|
|||
Loading…
Reference in New Issue