From 1643d25ed2295ca740385757fc9cb7ca6250832e Mon Sep 17 00:00:00 2001 From: dulingling Date: Tue, 28 Apr 2020 19:59:04 +0800 Subject: [PATCH] =?UTF-8?q?Upd:=E4=BF=A1=E7=94=A8=E5=8D=A1=E5=90=88?= =?UTF-8?q?=E8=A7=84=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/impls/ClientManagerImpl.java | 4 ++- .../manage/mappers/system/ClientMapper.xml | 7 ++-- .../partner/templates/partner_detail.html | 13 +++----- .../payment/partner/templates/partners.html | 32 ++++++++++--------- 4 files changed, 30 insertions(+), 26 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java index 6b667a1ad..2c0dda9b0 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java @@ -466,7 +466,9 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid client.put("show_all_permission", checkBDPermission > 0); if (checkBDPermission > 0) { JSONObject org = orgMapper.findOne(manager.getIntValue("org_id")); - boolean bdRateEditable = client.getIntValue("approve_result") != 1 || org.getBooleanValue("rate_editable"); + boolean bdRateEditable = client.getIntValue("approve_result") != 1 || + (client.getIntValue("upay_approve_result") !=1 && !client.containsKey("upay_approve_result") && client.getIntValue("upay_approve_result") !=4) + || org.getBooleanValue("rate_editable"); client.put("rate_editable", bdRateEditable); } else { client.put("company_phone", "******"); diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml index dbdfc3ffb..c3d60cc83 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml @@ -44,10 +44,13 @@ scup.upay_approve_time, scup.upay_refuse_remark, scup.upay_approve_email_send, - scup.upay_approve_email_id + scup.upay_approve_email_id, + config.enable_cross_payment, + config.enable_card_payment FROM sys_clients c inner join sys_client_config cc on cc.client_id = c.client_id inner join sys_org o on o.org_id=c.org_id + inner join sys_client_config config on c.client_id = config.client_id left join sys_client_upay_profile scup on scup.client_id = c.client_id INNER JOIN sys_client_bd d ON c.client_id = d.client_id AND d.bd_id = #{bd_user} and @@ -417,7 +420,7 @@ from sys_clients