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