Commit 6b3b054c by zhouhb

[+]代码提交

1 parent 43ebabf7
......@@ -14,5 +14,7 @@ import java.util.List;
@Data
public class SyncStaffOpenRequest extends DefaultRequest {
private String data;
private List<StaffSaveOpenRequest> list;
}
......@@ -136,7 +136,11 @@ public class OpenService {
}
public Boolean syncEntmicroStaff(SyncStaffOpenRequest staffSaveOpenRequest) {
List<StaffSaveOpenRequest> list = staffSaveOpenRequest.getList();
List<StaffSaveOpenRequest> list = null;
String data = staffSaveOpenRequest.getData();
if (StringUtils.isNotEmpty(data)) {
list = JSONObject.parseArray(data, StaffSaveOpenRequest.class);
}
RpcResponse<Boolean> booleanRpcResponse = merchantStaffRemote.syncEntmicroStaff(ConvertRequest.convertListRequest(list, MerchantStaffRequest.class));
if (booleanRpcResponse.isSuccess()) {
return booleanRpcResponse.getResult();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!