Browse Source

Merge branch 'develop' of http://47.102.102.152/athena-demo/athena-opt-demo into feature-sprint

master
clong 1 year ago
parent
commit
e98e06f747
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/staff/StaffCreateEAIService.java
  2. +1
    -1
      version_control/BUILD

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

@ -45,13 +45,13 @@ public class StaffCreateEAIService extends AbsEAIService {
//反序列化字段
EAIRequest request = new EAIRequest(messageBody);
List<StaffEntity> staffList = request.getObject("wait_register_personnel", StaffUtil.LIST_ENTITY_STAFF);
if (CollectionUtils.isEmpty(staffList)){
throw new DWRuntimeException("缺少必要参数");
}
staffList.forEach(item ->{
item.setStatus(StatusEnums.TOBEREPORTED.getValue());
item.setTabStatus(TabStatusEnums.NOSET.getValue());
});
if (CollectionUtils.isEmpty(staffList)){
throw new DWRuntimeException("缺少必要参数");
}
staffService.saveBatch(staffList);
return EAIUtil.buildEAIResult(new JSONObject().fluentPut("wait_register_personnel",staffList));
}


+ 1
- 1
version_control/BUILD View File

@ -1 +1 @@
1019
1020

Loading…
Cancel
Save