保存流量使用记录

This commit is contained in:
钱涛 2023-08-28 15:46:56 +08:00
parent 1b4c9ce7a7
commit d633386bbf
1 changed files with 4 additions and 5 deletions

View File

@ -42,15 +42,14 @@ public class TaxDeclarationApiBillingServiceImpl extends Service implements TaxD
public SalaryEmployeeService getSalaryEmployeeService(User user) {
return ServiceUtil.getService(SalaryEmployeeServiceImpl.class, user);
}
// private SalaryBatchService salaryBatchService;
public TaxDeclarationApiFlowWarnService getTaxDeclarationApiFlowWarnService(User user) {
return ServiceUtil.getService(TaxDeclarationApiFlowWarnServiceImpl.class, user);
}
private ExtEmpService extEmployeeService;
public ExtEmpService getExtEmpService(User user) {
return ServiceUtil.getService(ExtEmpServiceImpl.class, user);
}
@Override
public void updateApiFlowInfo(ApiFlowUpdateWrapper updateWrapper) {
@ -103,7 +102,7 @@ public class TaxDeclarationApiBillingServiceImpl extends Service implements TaxD
List<DataCollectionEmployee> employeeComInfos =getSalaryEmployeeService(user).getEmployeeByIdsAll(new ArrayList<>(employeeTaxAgentMap.keySet()));
Map<Long, String> empNameMap = SalaryEntityUtil.convert2Map(employeeComInfos, DataCollectionEmployee::getEmployeeId, DataCollectionEmployee::getUsername);
Map<Long, String> empIdNoMap = getSalaryEmployeeService(user).mapByEmployeeIds(employeeTaxAgentMap.keySet());
List<ExtEmpPO> extEmployeePOS = extEmployeeService.listAll();
List<ExtEmpPO> extEmployeePOS = getExtEmpService(user).listAll();
Map<Long, ExtEmpPO> extEmployeeMap = SalaryEntityUtil.convert2Map(extEmployeePOS, ExtEmpPO::getId);
// 获取个税扣缴义务人信息
List<TaxAgentPO> taxAgentPOS = getTaxAgentService(user).listByIds(new HashSet<>(employeeTaxAgentMap.values()));