From 9bd674275f4a302b571a9dd33726c38da79aa3b7 Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Wed, 21 Mar 2018 15:50:08 +0800 Subject: [PATCH] update --- .../appclient/web/RetailAppController.java | 1 - .../mappers/system/ClientsContractMapper.java | 2 + .../merchants/web/PartnerViewController.java | 1 + .../core/impl/ClientContractServiceImpl.java | 2 +- .../mappers/system/ClientsContractMapper.xml | 6 ++ .../static/sys/templates/contract_sign.html | 58 +++---------------- 6 files changed, 17 insertions(+), 53 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/appclient/web/RetailAppController.java b/src/main/java/au/com/royalpay/payment/manage/appclient/web/RetailAppController.java index 701ba9cdc..63cbccee5 100644 --- a/src/main/java/au/com/royalpay/payment/manage/appclient/web/RetailAppController.java +++ b/src/main/java/au/com/royalpay/payment/manage/appclient/web/RetailAppController.java @@ -407,7 +407,6 @@ public class RetailAppController { } } - @RequestMapping(value = "/client/manual_settle", method = RequestMethod.PUT) public void confirmSourceAgreeFile(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device,@RequestParam boolean manual_settle) { retailAppService.changeManualSettle(device,manual_settle); diff --git a/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientsContractMapper.java b/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientsContractMapper.java index 17c9620d1..873ad7b61 100644 --- a/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientsContractMapper.java +++ b/src/main/java/au/com/royalpay/payment/manage/mappers/system/ClientsContractMapper.java @@ -27,4 +27,6 @@ public interface ClientsContractMapper { @AutoSql(type = SqlType.SELECT) List list(); + List listWithClientInfo(); + } diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerViewController.java b/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerViewController.java index 223dc2858..a903936f6 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerViewController.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerViewController.java @@ -362,6 +362,7 @@ public class PartnerViewController { @PartnerMapping(value = "/manual_settle", method = RequestMethod.PUT, roles = PartnerRole.ADMIN) @ResponseBody public void manualSettle(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account, @RequestParam boolean manual_settle) { + clientManager.changeManualSettle(account.getIntValue("client_id"),manual_settle,account.getString("account_id"),1,"商户"+(manual_settle?"打开":"关闭")+"手动清算"); } diff --git a/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java index d85e0ecfe..14e259675 100644 --- a/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java @@ -218,6 +218,6 @@ public class ClientContractServiceImpl implements ClientContractService { @Override public List list() { - return clientsContractMapper.list(); + return clientsContractMapper.listWithClientInfo(); } } diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientsContractMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientsContractMapper.xml index f0b8b14c7..8530d41d2 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientsContractMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientsContractMapper.xml @@ -7,4 +7,10 @@ order by create_time desc limit 1 + \ No newline at end of file diff --git a/src/main/ui/static/sys/templates/contract_sign.html b/src/main/ui/static/sys/templates/contract_sign.html index ca4349457..c8f55c464 100644 --- a/src/main/ui/static/sys/templates/contract_sign.html +++ b/src/main/ui/static/sys/templates/contract_sign.html @@ -1,70 +1,26 @@ - \ No newline at end of file