From e32493f654f992efcd608304c107542520b1ea64 Mon Sep 17 00:00:00 2001 From: luoyang Date: Thu, 27 Feb 2020 11:44:26 +0800 Subject: [PATCH 01/11] =?UTF-8?q?add=20=E8=B7=A8=E5=A2=83=E5=95=86?= =?UTF-8?q?=E5=9F=8ERP=E4=BB=98=E8=B4=B9=E6=89=A3=E6=AC=BE=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=89=A3=E6=AC=BE=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../core/impl/RServicesApplyServiceImpl.java | 26 +++++++++++++++++++ .../manage/mappers/payment/OrderMapper.xml | 3 ++- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index eef42473c..980a5eab5 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 manage - 1.3.62 + 1.3.65 UTF-8 1.8.0 diff --git a/src/main/java/au/com/royalpay/payment/manage/rservices/core/impl/RServicesApplyServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/rservices/core/impl/RServicesApplyServiceImpl.java index 85e3afa83..5d7a07efa 100644 --- a/src/main/java/au/com/royalpay/payment/manage/rservices/core/impl/RServicesApplyServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/rservices/core/impl/RServicesApplyServiceImpl.java @@ -1,6 +1,7 @@ package au.com.royalpay.payment.manage.rservices.core.impl; import au.com.royalpay.payment.core.TransactionService; +import au.com.royalpay.payment.core.mappers.PmtOrderMapper; import au.com.royalpay.payment.manage.appclient.core.RetailAppService; import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper; import au.com.royalpay.payment.manage.mappers.system.ClientIncrementalMapper; @@ -64,6 +65,8 @@ public class RServicesApplyServiceImpl implements RServicesApplyService { private MailService mailService; @Resource private ClientIncrementalMapper clientIncrementalMapper; + @Resource + private PmtOrderMapper pmtOrderMapper; @Override public JSONObject getServicesApply(RServicesApplyQuery applyQuery) { @@ -157,6 +160,29 @@ public class RServicesApplyServiceImpl implements RServicesApplyService { transaction.put("remark", applyInfo.getString("service_code") + ":" + applyInfo.getString("title")); transaction.put("system_generate", 1); transactionService.saveTransaction(transaction); + JSONObject order = new JSONObject(); + order.put("order_id", orderId); + order.put("org_id", client.getIntValue("org_id")); + order.put("client_id", applyInfo.getIntValue("client_id")); + order.put("transaction_date", new Date()); + order.put("order_description", applyInfo.getString("title")); + order.put("order_detail", applyInfo.getString("title")); + order.put("currency", "AUD"); + order.put("display_amount", applyInfo.getBigDecimal("amount")); + order.put("total_amount", applyInfo.getBigDecimal("amount")); + order.put("coupon_payment_amount", 0); + order.put("customer_payment_amount", applyInfo.getBigDecimal("amount")); + order.put("refund_amount", applyInfo.getBigDecimal("amount")); + order.put("customer_ip", "0.0.0.0"); + order.put("surcharge_rate", "0"); + order.put("create_time", new Date()); + order.put("expire_time", new Date()); + order.put("confirm_time", new Date()); + order.put("gateway", 0); + order.put("status", 7); + order.put("channel", "System"); + pmtOrderMapper.save(order); + sendNotify(applyInfo, client); } diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml index bbcb11c6c..4777e7c9c 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml @@ -922,7 +922,8 @@ t.settle_amount, t.clearing_status = 2 pre_auth from pmt_orders o - left join pmt_transactions t on t.order_id=o.order_id and t.channel!='Settlement' and t.system_generate=0 + left join pmt_transactions t on t.order_id=o.order_id and t.channel!='Settlement' + AND (t.system_generate = 0 or (t.system_generate = 1 and t.remark like '%RYCBSM%')) AND o.client_id IN From 3cc9623569e882479fc2d27d24ea714bbd889a06 Mon Sep 17 00:00:00 2001 From: luoyang Date: Thu, 27 Feb 2020 17:33:50 +0800 Subject: [PATCH 02/11] =?UTF-8?q?fix=20=E8=B7=A8=E5=A2=83=E5=95=86?= =?UTF-8?q?=E5=9F=8E=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../core/impls/RetailAppServiceImp.java | 2 +- src/main/ui/login.html | 3 +- src/main/ui/login_v1.html | 3 +- .../partner-incremental-service.js | 8 ++-- .../partner_incremental_service.html | 41 +++++++++++++++---- .../partner_incremental_service_info.html | 2 - 7 files changed, 40 insertions(+), 21 deletions(-) diff --git a/pom.xml b/pom.xml index 980a5eab5..e5b8ca2b2 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 manage - 1.3.65 + 1.3.66 UTF-8 1.8.0 diff --git a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java index 108bcf969..5265493aa 100644 --- a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java +++ b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java @@ -3071,7 +3071,7 @@ public class RetailAppServiceImp implements RetailAppService { private boolean geekShowActVersion(String version) { boolean result = false; - String geekShowVersion = "2.10.11"; + String geekShowVersion = "2.12.11"; String[] nowAppVersion = version.split("\\."); String[] geekVersion = geekShowVersion.split("\\."); for (int i = 0; i < geekVersion.length; i++) { diff --git a/src/main/ui/login.html b/src/main/ui/login.html index 942c6f54c..6481fe9af 100644 --- a/src/main/ui/login.html +++ b/src/main/ui/login.html @@ -362,8 +362,7 @@ method: 'get', success: function (res) { url += res.token; - window.open(url, '_blank'); - location.href = '/index.html'; + location.href = url; }, error: function (resp) { console.log(resp.message) diff --git a/src/main/ui/login_v1.html b/src/main/ui/login_v1.html index e4da93947..a7d2ae33f 100644 --- a/src/main/ui/login_v1.html +++ b/src/main/ui/login_v1.html @@ -343,8 +343,7 @@ method: 'get', success: function (res) { url += res.token; - window.open(url, '_blank'); - location.href = '/index.html'; + location.href = url; }, error: function (resp) { console.log(resp.message) diff --git a/src/main/ui/static/incrementalService/partner-incremental-service.js b/src/main/ui/static/incrementalService/partner-incremental-service.js index 0b9d80a1a..544a398c6 100644 --- a/src/main/ui/static/incrementalService/partner-incremental-service.js +++ b/src/main/ui/static/incrementalService/partner-incremental-service.js @@ -46,10 +46,10 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) { var url = "https://mch.royalpay.com.au/#/sso_login?token="; $http.get("/client/partner_info/incremental_service/RYCBSM/login_token").then(function (res) { url += res.data.token; - window.open(url, '_blank'); + location.href = url; }, function (resp) { console.log(resp.data.message) - window.open("https://mch.geekforbest.com/#/login", '_blank'); + location.href = "https://mch.geekforbest.com/#/login"; }); }; @@ -95,10 +95,10 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) { var url = "https://mch.royalpay.com.au/#/sso_login?token="; $http.get("/client/partner_info/incremental_service/RYCBSM/login_token").then(function (res) { url += res.data.token; - window.open(url, '_blank'); + location.href = url; }, function (resp) { console.log(resp.data.message) - window.open("https://mch.geekforbest.com/#/login", '_blank'); + location.href = "https://mch.geekforbest.com/#/login"; }); }; diff --git a/src/main/ui/static/incrementalService/templates/partner_incremental_service.html b/src/main/ui/static/incrementalService/templates/partner_incremental_service.html index bcc9316f0..0b5656eef 100644 --- a/src/main/ui/static/incrementalService/templates/partner_incremental_service.html +++ b/src/main/ui/static/incrementalService/templates/partner_incremental_service.html @@ -109,12 +109,23 @@ {{service.is_valid?'已启用':'未启用' }} - @@ -147,14 +158,26 @@ 一站式跨境进口电商SaaS平台,帮您快速构建自己的品牌自营商城系统,直达10亿+中国消费者,快速实现获客和交易变现。 -
- - 查看详情 - + +
diff --git a/src/main/ui/static/incrementalService/templates/partner_incremental_service_info.html b/src/main/ui/static/incrementalService/templates/partner_incremental_service_info.html index 72859b52f..678a51955 100644 --- a/src/main/ui/static/incrementalService/templates/partner_incremental_service_info.html +++ b/src/main/ui/static/incrementalService/templates/partner_incremental_service_info.html @@ -84,8 +84,6 @@ {{serviceInfo.channel}} Service Info - 前去跨境商城
+
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+
+
+ +

@@ -802,6 +824,153 @@ Characters(including symbols and spaces)

+
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+ + + +
+
  Marketing Person
+
+
+
+ +
+ +
+

Required + Field

+

Less + Than 50 + Characters(including symbols and spaces)

+
+
+
+
+ +
+
+
+
+ +
+ +
+

Required + Field

+

Less + Than 20 Characters

+
+
+
+ +
+

Less + Than 2 Characters

+
+
+
+ +
+

Required + Field

+

Less + Than 11 Characters

+
+
+
+
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+ +
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
diff --git a/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html b/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html index 304abd8f7..046b2988a 100644 --- a/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html +++ b/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html @@ -592,10 +592,31 @@ Characters(including symbols and spaces)

+
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+
+ +

  Legal Representative
@@ -686,7 +707,6 @@ Characters(including symbols and spaces)

-
+
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+ + + +
+
  Marketing Person
+
+
+
+ +
+ +
+

Required + Field

+

Less + Than 50 + Characters(including symbols and spaces)

+
+
+
+
+ +
+
+
+
+ +
+ +
+

Required + Field

+

Less + Than 20 Characters

+
+
+
+ +
+

Less + Than 2 Characters

+
+
+
+ +
+

Required + Field

+

Less + Than 11 Characters

+
+
+
+
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+ +
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
diff --git a/src/main/ui/static/payment/partner/templates/client_partner_detail.html b/src/main/ui/static/payment/partner/templates/client_partner_detail.html index 9f04c7df7..3e7f3cd98 100644 --- a/src/main/ui/static/payment/partner/templates/client_partner_detail.html +++ b/src/main/ui/static/payment/partner/templates/client_partner_detail.html @@ -343,13 +343,20 @@
Partner Contact Information
-
- +
+ -
+

+
+ + +
+

+
+
@@ -399,13 +406,20 @@
Legal Representative
-
- +
+ -
+

+
+ + +
+

+
+
@@ -434,6 +448,53 @@
+ +

+
Marketing Person
+
+
+
+ + +
+

+
+
+
+ + +
+

+
+
+
+ + +
+

+
+
+
+ + +
+

+ +

+
+
+
+ + +
+

+ +

+
+
+
+
+
diff --git a/src/main/ui/static/payment/partner/templates/client_partner_edit.html b/src/main/ui/static/payment/partner/templates/client_partner_edit.html index 21dfb1f00..0cd9fc0fc 100644 --- a/src/main/ui/static/payment/partner/templates/client_partner_edit.html +++ b/src/main/ui/static/payment/partner/templates/client_partner_edit.html @@ -408,9 +408,30 @@ Characters(including symbols and spaces)

+
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+
+ +
@@ -491,6 +512,124 @@
+
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+ +
+ + +
+
  Marketing Person
+
+
+
+ +
+ +
+

Required + Field

+

Less + Than 50 + Characters(including symbols and spaces)

+
+
+
+ +
+ +
+ +
+
+

Required Field

+

Less Than 20 + Characters(including symbols and spaces)

+
+
+ +
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+ +
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+ +
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+
diff --git a/src/main/ui/static/payment/partner/templates/partner_detail.html b/src/main/ui/static/payment/partner/templates/partner_detail.html index 54ff61fe9..e595f4a34 100644 --- a/src/main/ui/static/payment/partner/templates/partner_detail.html +++ b/src/main/ui/static/payment/partner/templates/partner_detail.html @@ -700,13 +700,21 @@
Partner Contact Information
-
- +
+ -
+

+ +
+ + +
+

+
+
@@ -753,13 +761,20 @@
Legal Representative
-
- +
+ -
+

+
+ + +
+

+
+
@@ -788,6 +803,53 @@
+ +

+
Marketing Person
+
+
+
+ + +
+

+
+
+
+ + +
+

+
+
+
+ + +
+

+
+
+
+ + +
+

+ +

+
+
+
+ + +
+

+ +

+
+
+
+
+
diff --git a/src/main/ui/static/payment/partner/templates/partner_edit.html b/src/main/ui/static/payment/partner/templates/partner_edit.html index f2bd3dccd..f4884eecd 100644 --- a/src/main/ui/static/payment/partner/templates/partner_edit.html +++ b/src/main/ui/static/payment/partner/templates/partner_edit.html @@ -595,11 +595,30 @@ Characters(including symbols and spaces)

- - +
+ +
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+
+ +
@@ -633,7 +652,6 @@
-
@@ -652,7 +670,6 @@ Characters(including symbols and spaces)

-
-
+
+ +
+ +
+
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+ + + +
  Marketing Person
+
+
+
+ +
+
+ +
+
+ +
+
+

Required + Field

+

Less + Than 50 + Characters(including symbols and spaces)

+
+
+
+
+ +
+ +
+
+ +
+
+

Required Field

+

Less Than 20 + Characters(including symbols and spaces)

+
+
+
+ +
+ +
+
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+ +
+ +
+ +
+
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
+
+ +
+ +
+
+ +
+
+

Required + Field

+

Less Than 50 + Characters(including symbols and spaces)

+
+
From f1b2c2f453822ba4393ed467e14c1277b783c2eb Mon Sep 17 00:00:00 2001 From: liuxinxin Date: Fri, 28 Feb 2020 21:29:51 +0800 Subject: [PATCH 09/11] =?UTF-8?q?=E3=80=90R=E3=80=91=20=E5=95=86=E6=88=B7?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=96=B0=E5=A2=9E=E5=AF=B9=E6=8E=A5=E4=BA=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4d83957a0..3fc2220f7 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 manage - 1.3.75 + 1.3.76 UTF-8 1.8.0 From 7575fb56b9804aa0f117cb8390eb592cd42d47a9 Mon Sep 17 00:00:00 2001 From: luoyang Date: Mon, 2 Mar 2020 13:37:22 +0800 Subject: [PATCH 10/11] delete app not found test --- pom.xml | 2 +- .../manage/appclient/core/impls/RetailRSvcServiceImpl.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3fc2220f7..9b6f4228a 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 manage - 1.3.76 + 1.3.78 UTF-8 1.8.0 diff --git a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailRSvcServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailRSvcServiceImpl.java index 14bea82e8..b8d8aa0af 100644 --- a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailRSvcServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailRSvcServiceImpl.java @@ -11,6 +11,7 @@ import au.com.royalpay.payment.tools.codec.AESCrypt; import au.com.royalpay.payment.tools.device.DeviceSupport; import au.com.royalpay.payment.tools.encryptalgorithm.SignUtils; import au.com.royalpay.payment.tools.exceptions.BadRequestException; +import au.com.royalpay.payment.tools.exceptions.NotFoundException; import au.com.royalpay.payment.tools.mappers.CommonIncrementalChannelMapper; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; From 3f123eee4181ca398810bf5a566187bfb0bbf9c2 Mon Sep 17 00:00:00 2001 From: luoyang Date: Wed, 4 Mar 2020 10:20:41 +0800 Subject: [PATCH 11/11] =?UTF-8?q?add=20App=20=E5=BC=B9=E7=AA=97=E9=BB=91?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../manage/activities/app_index/beans/AppActBean.java | 10 ++++++++++ .../appclient/core/impls/RetailAppServiceImp.java | 7 +++++++ .../ui/static/actapp/templates/act_app_detail.html | 7 +++++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9b6f4228a..15508715d 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 manage - 1.3.78 + 1.3.79 UTF-8 1.8.0 diff --git a/src/main/java/au/com/royalpay/payment/manage/activities/app_index/beans/AppActBean.java b/src/main/java/au/com/royalpay/payment/manage/activities/app_index/beans/AppActBean.java index 43df823cd..aca4ea5e8 100644 --- a/src/main/java/au/com/royalpay/payment/manage/activities/app_index/beans/AppActBean.java +++ b/src/main/java/au/com/royalpay/payment/manage/activities/app_index/beans/AppActBean.java @@ -19,6 +19,7 @@ public class AppActBean { private String act_img; private String active_date; private String expire_date; + private String partner_black_list; public JSONObject toJsonParam(){ @@ -28,6 +29,7 @@ public class AppActBean { params.put("show_type",show_type); params.put("act_img",act_img); params.put("is_valid",is_valid); + params.put("partner_black_list", partner_black_list); if (active_date != null) { try { Date fromDate = DateUtils.parseDate(active_date, DATE_PATTERNS); @@ -110,4 +112,12 @@ public class AppActBean { public void setIs_valid(boolean is_valid) { this.is_valid = is_valid; } + + public String getPartner_black_list() { + return partner_black_list; + } + + public void setPartner_black_list(String partner_black_list) { + this.partner_black_list = partner_black_list; + } } diff --git a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java index 84301c7bf..6a22830e3 100644 --- a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java +++ b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java @@ -1584,6 +1584,13 @@ public class RetailAppServiceImp implements RetailAppService { JSONObject latestAct = appActService.getAppActPopup(); if (latestAct != null) { + if (StringUtils.isNotBlank(latestAct.getString("partner_black_list"))) { + JSONObject client = clientManager.getClientInfo(clientId); + String[] blackList = latestAct.getString("partner_black_list").split(","); + if (client == null || Arrays.asList(blackList).contains(client.getString("client_moniker"))) { + return result; + } + } latestAct.put("id", latestAct.getString("act_id")); latestAct.put("url", latestAct.getString("act_url")); latestAct.put("title", latestAct.getString("act_name")); diff --git a/src/main/ui/static/actapp/templates/act_app_detail.html b/src/main/ui/static/actapp/templates/act_app_detail.html index 0dfdba7e5..b9ed670c9 100644 --- a/src/main/ui/static/actapp/templates/act_app_detail.html +++ b/src/main/ui/static/actapp/templates/act_app_detail.html @@ -87,6 +87,13 @@ ng-model="actDetail.act_url"> +
+ +
+