Browse Source

Merge branch 'sprint/S1' into develop

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

+ 1
- 3
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/staff/StaffCreateEAIService.java View File

@ -17,7 +17,6 @@ import org.springframework.util.CollectionUtils;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors;
/** /**
* @Auther: zhenggl * @Auther: zhenggl
@ -48,7 +47,6 @@ public class StaffCreateEAIService extends AbsEAIService {
throw new DWRuntimeException("缺少必要参数"); throw new DWRuntimeException("缺少必要参数");
} }
staffService.saveBatch(staffList); staffService.saveBatch(staffList);
List<StaffEntity> collect = staffList.stream().map(item -> new StaffEntity(item.getId(),item.getEmployeeNo())).collect(Collectors.toList());
return EAIUtil.buildEAIResult(new JSONObject().fluentPut("wait_register_personnel",collect));
return EAIUtil.buildEAIResult(new JSONObject().fluentPut("wait_register_personnel",staffList));
} }
} }

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

@ -74,7 +74,7 @@ public class StaffUpdateEAIService extends AbsEAIService {
} }
List<StaffEntity> update = collect.get(false); List<StaffEntity> update = collect.get(false);
if (!CollectionUtils.isEmpty(update)){ if (!CollectionUtils.isEmpty(update)){
staffRepository.updateStaffList(update, SecurityUtil.getUserProfile().getTenantSid());
staffService.updateBatchById(update);
} }
} else if (OptionEnums.TASK.getValue().equals(option)) { } else if (OptionEnums.TASK.getValue().equals(option)) {
staffRepository.updateStatusAndDate(staffList, SecurityUtil.getUserProfile().getTenantSid()); staffRepository.updateStatusAndDate(staffList, SecurityUtil.getUserProfile().getTenantSid());


Loading…
Cancel
Save