Browse Source

Merge branch 'sprint/S1' into develop

master
郑贵龙 1 year ago
parent
commit
38086476e7
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/staff/StaffUpdateEAIService.java

+ 4
- 4
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/staff/StaffUpdateEAIService.java View File

@ -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);


Loading…
Cancel
Save