|
|
@ -53,8 +53,8 @@ public class StaffUpdateEAIService extends AbsEAIService { |
|
|
|
if (StringUtils.isEmpty(option)) { |
|
|
|
if (!CollectionUtils.isEmpty(staffList)){ |
|
|
|
staffList.forEach(item ->{ |
|
|
|
item.setStatus(1); |
|
|
|
item.setTabStatus(0); |
|
|
|
item.setStatus(StatusEnums.TOBEREPORTED.getValue()); |
|
|
|
item.setTabStatus(TabStatusEnums.NOSET.getValue()); |
|
|
|
}); |
|
|
|
staffService.saveBatch(staffList); |
|
|
|
} |
|
|
@ -64,8 +64,8 @@ public class StaffUpdateEAIService extends AbsEAIService { |
|
|
|
Map<Boolean, List<StaffEntity>> collect = staffList.stream().collect(Collectors.groupingBy(item -> StringUtils.isEmpty(item.getId()))); |
|
|
|
List<StaffEntity> insert = collect.get(true); |
|
|
|
insert.forEach(item ->{ |
|
|
|
item.setStatus(1); |
|
|
|
item.setTabStatus(0); |
|
|
|
item.setStatus(StatusEnums.TOBEREPORTED.getValue()); |
|
|
|
item.setTabStatus(TabStatusEnums.NOSET.getValue()); |
|
|
|
}); |
|
|
|
staffService.saveBatch(insert); |
|
|
|
List<StaffEntity> update = collect.get(false); |
|
|
|