修复大数据量,重新核算报错
This commit is contained in:
parent
dc3dfc2d6b
commit
164a97a8e0
|
|
@ -253,9 +253,10 @@ public class AddUpSituationServiceImpl extends Service implements AddUpSituation
|
|||
|
||||
AddUpSituationBiz biz = new AddUpSituationBiz();
|
||||
List<AddUpSituation> addUpSituations = biz.listSome(AddUpSituation.builder().taxAgentId(taxAgentId).taxYearMonth(taxCycle).build());
|
||||
Set<Long> addUpSituationIds = SalaryEntityUtil.properties(addUpSituations, AddUpSituation::getId);
|
||||
List<Long> addUpSituationIds = SalaryEntityUtil.properties(addUpSituations, AddUpSituation::getId, Collectors.toList());
|
||||
if (CollectionUtils.isNotEmpty(addUpSituationIds)) {
|
||||
getAddUpSituationMapper().deleteByIds(addUpSituationIds);
|
||||
List<List<Long>> partition = Lists.partition(addUpSituationIds, 100);
|
||||
partition.forEach(getAddUpSituationMapper()::deleteByIds);
|
||||
}
|
||||
|
||||
return Boolean.TRUE;
|
||||
|
|
@ -611,7 +612,7 @@ public class AddUpSituationServiceImpl extends Service implements AddUpSituation
|
|||
String idNo = dto.getIdNo();
|
||||
|
||||
//筛选导入人员信息可以在人力资源池中匹配到的人员信息
|
||||
List<DataCollectionEmployee> employeeSameIds = getSalaryEmployeeService(user).matchImportEmployee(confValue, employees, userName, deparmentName, mobile, workcode, idNo,null);
|
||||
List<DataCollectionEmployee> employeeSameIds = getSalaryEmployeeService(user).matchImportEmployee(confValue, employees, userName, deparmentName, mobile, workcode, idNo, null);
|
||||
|
||||
//当人员信息导入筛选的全局配置为"0"时,姓名才是必填项
|
||||
if (StringUtils.isBlank(userName) && "0".equals(confValue)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue