|
|
|
@ -176,9 +176,11 @@ public class AliforexcelServiceImpl implements AliforexcelService {
|
|
|
|
|
royalThreadPoolExecutor.execute(() -> {
|
|
|
|
|
List<JSONObject> apClients = clientMapper.findApClient();
|
|
|
|
|
apClients.forEach(client -> {
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
JSONObject params = new JSONObject();
|
|
|
|
|
params.put("merchant_name", client.getString("company_name"));
|
|
|
|
|
params.put("merchant_shortname", client.getString("short_name"));
|
|
|
|
|
params.put("merchant_shortname", StringUtils.substring(client.getString("short_name"), 0, 20));
|
|
|
|
|
params.put("office_phone", client.getString("contact_phone"));
|
|
|
|
|
params.put("contact_phone", client.getString("contact_phone"));
|
|
|
|
|
params.put("contact_email", client.getString("contact_email"));
|
|
|
|
@ -201,6 +203,9 @@ public class AliforexcelServiceImpl implements AliforexcelService {
|
|
|
|
|
} else {
|
|
|
|
|
throw new BadRequestException(elem.elementText("return_msg"));
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|