diff --git a/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java index 1ba04d1aa..14eec238e 100644 --- a/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/signin/core/impls/SignInAccountServiceImpl.java @@ -84,6 +84,8 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati @Resource private ClientFilesMapper clientFilesMapper; @Resource + private ClientComplianceCompanyMapper clientComplianceCompanyMapper; + @Resource private SmsSender smsSender; private final String RESET_CLIENT_ACCOUNT_PREFIX = "RESET_CLIENT_ACCOUNT"; private final String RESET_MANAGER_ACCOUNT_PREFIX = "RESET_MANAGER_ACCOUNT"; @@ -694,7 +696,12 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati } } result.put("client_less_file", clientFilesIsLess); - result.put("client_refuse_reason", "测试驳回!!!"); + if (clientFilesIsLess) { + JSONObject authFileCompliance = clientComplianceCompanyMapper.findFileByClientId(client.getIntValue("client_id")); + if (authFileCompliance != null && StringUtils.isNotBlank(authFileCompliance.getString("description"))) { + result.put("client_refuse_reason", authFileCompliance.getString("description")); + } + } } } return result; diff --git a/src/main/ui/static/boot/indexMainApp.js b/src/main/ui/static/boot/indexMainApp.js index b9a45284e..23d53d9d3 100644 --- a/src/main/ui/static/boot/indexMainApp.js +++ b/src/main/ui/static/boot/indexMainApp.js @@ -19,6 +19,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo var stompClient = null; var newPartnerGuide_counts = 0; var pwdcount = 0; + var complianceNoticeCount = 0; $scope.loadCurrentUser = function () { $http.get('/global/userstatus/current_partner').then(function (resp) { $rootScope.currentUser = resp.data; @@ -35,7 +36,6 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo }*/ if ($rootScope.currentUser.is_password_expired && pwdcount == 0) { - commonDialog.confirm({ title: 'Change Password!', content: 'Your password has been expired,click OK to set a new password' @@ -47,12 +47,13 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo $scope.ComplianceToperfect = function () { $uibModal.open({ templateUrl: '/static/payment/partner/templates/compliance_files_advice.html', - backdrop: false + size: 'lg' }) }; - if($scope.currentUser.client.client_less_file) + if($scope.currentUser.client.client_less_file && complianceNoticeCount==0) { $scope.ComplianceToperfect(); + complianceNoticeCount++; } connectWebSocket(); if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) { diff --git a/src/main/ui/static/payment/partner/partner.js b/src/main/ui/static/payment/partner/partner.js index c0c941be3..544ad72d7 100644 --- a/src/main/ui/static/payment/partner/partner.js +++ b/src/main/ui/static/payment/partner/partner.js @@ -963,43 +963,58 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload','uiBoot $scope.clientComplianceViewCommit= function () { - if(!$scope.file.client_files.client_agree_file) + if(!$scope.file.client_agree_file) { commonDialog.alert({title: 'Error', content: '请提交* Agreement', type: 'error'}); return; - }else if(!$scope.file.client_files.client_id_file) + }else if(!$scope.file.client_id_file) { commonDialog.alert({title: 'Error', content:'请提交* ID', type: 'error'}); return; - }else if(!$scope.file.client_files.client_bank_file) + }else if(!$scope.file.client_bank_file) { commonDialog.alert({title: 'Error', content: '请提交* bank statement', type: 'error'}); return; } - else if(!$scope.file.client_files.client_company_file) + else if(!$scope.file.client_company_file) { commonDialog.alert({title: 'Error', content: '请提交* Certificate of Registration', type: 'error'}); return; }; - - $http.post('/client/partner_info/clientCompliance/' + $scope.partner.client_moniker + '/viewCommit', $scope.file).then(function () { - commonDialog.alert({ - title: 'Success', - content: 'Upload Successful', - type: 'success' - }); - $state.reload(); - }, function (resp) { - commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); + commonDialog.confirm({ + title: 'Warning', + content: 'Are you sure commit for compliance audit?' + }).then(function () { + $http.post('/client/partner_info/clientCompliance/' + $scope.partner.client_moniker + '/viewCommit', $scope.file).then(function () { + commonDialog.alert({ + title: 'Success', + content: 'Commit Successful', + type: 'success' + }); + $state.reload(); + }, function (resp) { + commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); + }) }) + }; $scope.deleteComplianceFiles = function (file_id) { $scope.file_id = file_id; - - /*$http.put('/sys/partners/' + $scope.partner.client_moniker + '/saveAdditional_content', {additional_content: $scope.partner.additional_content}).then(function (resp) {*/ - $http.put('/client/partner_info/auth_file/' + $scope.file_id + '/delete').then(function (resp) { - $state.reload(); + commonDialog.confirm({ + title: 'Warning', + content: 'This operation will delete the file, Are you sure?' + }).then(function () { + $http.put('/client/partner_info/auth_file/' + $scope.file_id + '/delete').then(function (resp) { + commonDialog.alert({ + title: 'Success', + content: 'Delete Successful', + type: 'success' + }); + $state.reload(); + }, function (resp) { + commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); + }) }) }; 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 7b93e6b11..3cf12aa42 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 @@ -54,8 +54,7 @@
(资料审核中)
+ Compliance Files+
RoyalPayMerchant Supplement + Compliance File Notification +
++
Dear RoyalPay Merchants:
++
+
RoyalPay is committed to providing a secure and safe platform for Chinese payments. As a part of this + we regularly participate in communication with Austrac and China's Foreign Exchange Regulator. To ensure + your business is fully compliant, we require certain documents from you by the 1st of October. If you believe + you may not be able to submit these documents on time please get in touch with us as soon as possible.
+If you have any questions or issues related to this adjustment, please don’t hesitate to call 1300 107 750 or email info@royalpay.com.au.
++
Best Regards,
++
RoyalPay Customer Service Team
+RoyalPay皇家支付商户合规文件补充通知 +
++
尊敬的RoyalPay商户:
++
+
应澳洲政府反洗钱监管机构Austrac和中国外汇监管相关要求,需要您配合补充完善基本资料以完成合规流程,截止时间2019年10月01日前,超期未提交将可能会影响您的正常交易,谢谢您的配合。
+RoyalPay客服与技术支持在此期间将竭诚为您服务,如有疑问或需帮助,请拨打我们的客服电话:1300 107 750或添加RoyalPay官方客服号:royalpay_1详询。
++
在此期间给您造成的不便,我们深表歉意,感谢您的理解与支持。
++
顺颂商祺
+RoyalPay Customer Service Team
+2019年8月6日
+