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 15055ae5a..b752401ef 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 @@ -142,22 +142,16 @@ - OR (c.client_id NOT IN ( - SELECT client_id FROM sys_client_upay_profile - ) OR c.client_id IN ( - SELECT client_id FROM sys_client_upay_profile AS cardFlow - WHERE cardFlow.upay_approve_result = 4 or upay_approve_result = 1 - )) + SELECT client_id FROM sys_client_upay_profile scup + WHERE ((scup.upay_approve_result=4 and scup.upay_open_status is null) or scup.upay_open_status=1 or scup.upay_open_status=2 or scup.upay_open_status=4) + ) - AND (c.client_id NOT IN ( - SELECT client_id FROM sys_client_upay_profile + AND c.client_id IN ( + SELECT client_id FROM sys_client_upay_profile scup + WHERE ((scup.upay_approve_result=4 and scup.upay_open_status is null) or scup.upay_open_status=1 or scup.upay_open_status=2 or scup.upay_open_status=4) ) - OR c.client_id IN ( - SELECT client_id FROM sys_client_upay_profile AS cardFlow - WHERE cardFlow.upay_approve_result = 4 or upay_approve_result = 1 - )) and c.source=4 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 811b02888..6134cfec2 100644 --- a/src/main/ui/static/payment/partner/templates/partner_detail.html +++ b/src/main/ui/static/payment/partner/templates/partner_detail.html @@ -264,7 +264,7 @@
- + 制作信用卡支付合同 制作促销合同