From 942acf08babb5f7ed9ffe540da4a5838cffe3e6a Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Sat, 28 Apr 2018 16:50:21 +0800 Subject: [PATCH] update --- .../manage/risk/core/impl/RiskMerchantServiceImpl.java | 10 +++------- src/main/ui/static/risk/risk.js | 4 ++-- src/main/ui/static/risk/templates/risk_detail.html | 6 ++++-- src/main/ui/static/risk/templates/risk_edit.html | 2 +- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/risk/core/impl/RiskMerchantServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/risk/core/impl/RiskMerchantServiceImpl.java index 2243b8368..8d99a5afe 100644 --- a/src/main/java/au/com/royalpay/payment/manage/risk/core/impl/RiskMerchantServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/risk/core/impl/RiskMerchantServiceImpl.java @@ -53,11 +53,6 @@ public class RiskMerchantServiceImpl implements RiskMerchantService { detail.put("auditor_id", account.getString("manager_id")); detail.put("create_time", new Date()); riskMerchantDetailLogMapper.save(detail); - record.put("status", 2); - JSONObject recordUpdate = new JSONObject(); - recordUpdate.put("record_id", record.getString("record_id")); - recordUpdate.put("status", 2); - riskMerchantRecordMapper.update(recordUpdate); } @Override @@ -140,6 +135,7 @@ public class RiskMerchantServiceImpl implements RiskMerchantService { } @Override + @Transactional public void dealRiskRecordDirectly(JSONObject account, String record_id) { JSONObject record = riskMerchantRecordMapper.findById(record_id); if (record == null) { @@ -157,9 +153,9 @@ public class RiskMerchantServiceImpl implements RiskMerchantService { detail.put("create_time", new Date()); riskMerchantDetailLogMapper.save(detail); JSONObject recordUpdate = new JSONObject(); - recordUpdate.put("record_id",record_id); + recordUpdate.put("id",record_id); recordUpdate.put("status", 1); - riskMerchantRecordMapper.update(record); + riskMerchantRecordMapper.update(recordUpdate); } @Override diff --git a/src/main/ui/static/risk/risk.js b/src/main/ui/static/risk/risk.js index c033d960e..3b78fdeb6 100644 --- a/src/main/ui/static/risk/risk.js +++ b/src/main/ui/static/risk/risk.js @@ -148,8 +148,6 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS }) }; $scope.listDetail(1); - - $scope.addRemark = function () { $uibModal.open({ templateUrl: '/static/risk/templates/risk_remark.html', @@ -158,6 +156,7 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS return record.id; }} }).result.then(function () { + $scope.listDetail(1); commonDialog.alert({ title: 'Success', type: 'success' @@ -176,6 +175,7 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS type: 'Success' }); $scope.listDetail(1); + $scope.record.status=1; }).then(function (resp) { commonDialog.alert({ title: 'Error', diff --git a/src/main/ui/static/risk/templates/risk_detail.html b/src/main/ui/static/risk/templates/risk_detail.html index 03e8d87f5..08ebab206 100644 --- a/src/main/ui/static/risk/templates/risk_detail.html +++ b/src/main/ui/static/risk/templates/risk_detail.html @@ -21,8 +21,10 @@
Risk Details
-
-
+
+ + +
diff --git a/src/main/ui/static/risk/templates/risk_edit.html b/src/main/ui/static/risk/templates/risk_edit.html index c6d99e4c3..a1fa06c5d 100644 --- a/src/main/ui/static/risk/templates/risk_edit.html +++ b/src/main/ui/static/risk/templates/risk_edit.html @@ -1,5 +1,5 @@
-

Phone Top Up

+

Add Remark