|
|
|
@ -182,9 +182,10 @@ public class AliforexcelServiceImpl implements AliforexcelService {
|
|
|
|
|
params.put("office_phone", client.getString("contact_phone"));
|
|
|
|
|
params.put("contact_phone", client.getString("contact_phone"));
|
|
|
|
|
params.put("contact_email", client.getString("contact_email"));
|
|
|
|
|
params.put("business_category", "392");
|
|
|
|
|
params.put("business_category", "484");
|
|
|
|
|
params.put("merchant_remark", client.getString("client_moniker"));
|
|
|
|
|
params.put("website", client.getString("website"));
|
|
|
|
|
params.put("merchant_introduction", client.getString("short_name"));
|
|
|
|
|
SubMerchantInfo subMerchantInfo = JSONObject.toJavaObject(params, SubMerchantInfo.class);
|
|
|
|
|
params.put("merchant_id", client.getString("merchant_id"));
|
|
|
|
|
params.put("client_id", client.getString("client_id"));
|
|
|
|
@ -195,6 +196,8 @@ public class AliforexcelServiceImpl implements AliforexcelService {
|
|
|
|
|
if (StringUtils.isNotEmpty(sub_merchant_id)) {
|
|
|
|
|
params.put("sub_merchant_id", sub_merchant_id);
|
|
|
|
|
sysWxMerchantApplyMapper.insertWxMerchantApply(params);
|
|
|
|
|
client.put("sub_merchant_id", sub_merchant_id);
|
|
|
|
|
clientMapper.update(client);
|
|
|
|
|
} else {
|
|
|
|
|
throw new BadRequestException(elem.elementText("return_msg"));
|
|
|
|
|
}
|
|
|
|
|