From 45deeca76273351c86d89f54cf5935abb9595dc9 Mon Sep 17 00:00:00 2001 From: luoyang Date: Fri, 11 Jan 2019 16:25:32 +0800 Subject: [PATCH] add store_name --- .../merchants/beans/SubMerchantIdApply.java | 12 +++++----- .../partner/templates/add_partner.html | 2 +- .../templates/apply_rpay_sub_merchant_id.html | 2 +- .../templates/apply_wx_sub_merchant_id.html | 2 +- .../partner/templates/partner_detail.html | 3 +++ .../partner/templates/partner_edit.html | 23 ++++++++++++++++--- 6 files changed, 32 insertions(+), 12 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/beans/SubMerchantIdApply.java b/src/main/java/au/com/royalpay/payment/manage/merchants/beans/SubMerchantIdApply.java index 4d1a843a4..5929151c5 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/beans/SubMerchantIdApply.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/beans/SubMerchantIdApply.java @@ -22,8 +22,8 @@ public class SubMerchantIdApply { private String merchant_id; @NotBlank(message = "error.payment.valid.param_missing") @Length(max = 20) - @JSONField(name = "short_name") - private String merchant_shortname; + @JSONField(name = "store_name") + private String merchant_storename; @NotBlank(message = "error.payment.valid.param_missing") @Length(max = 20) @JSONField(name = "company_phone") @@ -51,8 +51,8 @@ public class SubMerchantIdApply { if(StringUtils.isNotEmpty(merchant_name)){ params.put("merchant_name",merchant_name); } - if(StringUtils.isNotEmpty(merchant_shortname)){ - params.put("merchant_shortname",merchant_shortname); + if(StringUtils.isNotEmpty(merchant_storename)){ + params.put("merchant_shortname",merchant_storename); } if(StringUtils.isNotEmpty(office_phone)){ params.put("office_phone",office_phone); @@ -101,11 +101,11 @@ public class SubMerchantIdApply { } public String getMerchant_shortname() { - return this.merchant_shortname; + return this.merchant_storename; } public void setMerchant_shortname(String merchant_shortname) { - this.merchant_shortname = merchant_shortname; + this.merchant_storename = merchant_shortname; } public String getOffice_phone() { diff --git a/src/main/ui/static/payment/partner/templates/add_partner.html b/src/main/ui/static/payment/partner/templates/add_partner.html index f604935cf..bddcbe312 100644 --- a/src/main/ui/static/payment/partner/templates/add_partner.html +++ b/src/main/ui/static/payment/partner/templates/add_partner.html @@ -109,7 +109,7 @@
-