master
taylor.dang 5 years ago
parent 4270218381
commit 9ff6822f57

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

Loading…
Cancel
Save