AND t.client_id IN
diff --git a/src/main/resources/jasper/partner_settlement_detail.jasper b/src/main/resources/jasper/partner_settlement_detail.jasper
new file mode 100644
index 000000000..caeb59160
Binary files /dev/null and b/src/main/resources/jasper/partner_settlement_detail.jasper differ
diff --git a/src/main/ui/static/analysis/templates/channels_analysis.html b/src/main/ui/static/analysis/templates/channels_analysis.html
index db4fa595d..0207fee64 100644
--- a/src/main/ui/static/analysis/templates/channels_analysis.html
+++ b/src/main/ui/static/analysis/templates/channels_analysis.html
@@ -131,6 +131,8 @@
Channels |
Total Amount (AUD) |
Total orders |
+ Transaction Partners |
+ Enable Partners |
@@ -139,6 +141,8 @@
ng-bind="channels.channel">
|
|
+ |
+ |
diff --git a/src/main/ui/static/payment/partner/partner-manage.js b/src/main/ui/static/payment/partner/partner-manage.js
index 0807c0f7a..f66840075 100644
--- a/src/main/ui/static/payment/partner/partner-manage.js
+++ b/src/main/ui/static/payment/partner/partner-manage.js
@@ -1649,7 +1649,37 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
});
})
};
-
+ $scope.cb_bankpay = [];
+ $scope.cbChannelConfig = function () {
+ $http.get('/sysconfig/payment/config').then(function (resp) {
+ resp.data.forEach(function (channel) {
+ if (channel.type === 1) {
+ $scope.cb_bankpay.push(channel);
+ }
+ })
+ })
+ };
+ $scope.cbChannelConfig();
+ $scope.updateCBBankPayConfig = function (key, channel) {
+ var content = "";
+ if (channel == null) {
+ content = "你确定要将支付通道跟随系统"
+ } else {
+ content = '你确定要将支付通道更改为:' + channel
+ }
+ commonDialog.confirm({
+ title: 'Confirm',
+ content: content
+ }).then(function () {
+ $http.put('/sys/partners/'+ $scope.partner.client_moniker + '/cb_bankpay/'+ key +'/channel_id', {channel_id: channel}).then(function (resp) {
+ commonDialog.alert({type: 'success', title: 'Success', content: '修改成功'});
+ $scope.loadPartnerPaymentInfo();
+ }, function (resp) {
+ commonDialog.alert({type: 'error', title: 'Error', content: resp.data.message});
+ $scope.loadPartnerPaymentInfo();
+ });
+ })
+ };
$scope.toggleGatewayEmailNotice = function (channel) {
if (!$scope.paymentInfo) {
return;
diff --git a/src/main/ui/static/payment/partner/templates/partner_payment_info.html b/src/main/ui/static/payment/partner/templates/partner_payment_info.html
index 164a898f3..67635ced0 100644
--- a/src/main/ui/static/payment/partner/templates/partner_payment_info.html
+++ b/src/main/ui/static/payment/partner/templates/partner_payment_info.html
@@ -414,6 +414,17 @@
+