master
wangning 7 years ago
parent 47df91b1c5
commit 942acf08ba

@ -53,11 +53,6 @@ public class RiskMerchantServiceImpl implements RiskMerchantService {
detail.put("auditor_id", account.getString("manager_id")); detail.put("auditor_id", account.getString("manager_id"));
detail.put("create_time", new Date()); detail.put("create_time", new Date());
riskMerchantDetailLogMapper.save(detail); 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 @Override
@ -140,6 +135,7 @@ public class RiskMerchantServiceImpl implements RiskMerchantService {
} }
@Override @Override
@Transactional
public void dealRiskRecordDirectly(JSONObject account, String record_id) { public void dealRiskRecordDirectly(JSONObject account, String record_id) {
JSONObject record = riskMerchantRecordMapper.findById(record_id); JSONObject record = riskMerchantRecordMapper.findById(record_id);
if (record == null) { if (record == null) {
@ -157,9 +153,9 @@ public class RiskMerchantServiceImpl implements RiskMerchantService {
detail.put("create_time", new Date()); detail.put("create_time", new Date());
riskMerchantDetailLogMapper.save(detail); riskMerchantDetailLogMapper.save(detail);
JSONObject recordUpdate = new JSONObject(); JSONObject recordUpdate = new JSONObject();
recordUpdate.put("record_id",record_id); recordUpdate.put("id",record_id);
recordUpdate.put("status", 1); recordUpdate.put("status", 1);
riskMerchantRecordMapper.update(record); riskMerchantRecordMapper.update(recordUpdate);
} }
@Override @Override

@ -148,8 +148,6 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
}) })
}; };
$scope.listDetail(1); $scope.listDetail(1);
$scope.addRemark = function () { $scope.addRemark = function () {
$uibModal.open({ $uibModal.open({
templateUrl: '/static/risk/templates/risk_remark.html', templateUrl: '/static/risk/templates/risk_remark.html',
@ -158,6 +156,7 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
return record.id; return record.id;
}} }}
}).result.then(function () { }).result.then(function () {
$scope.listDetail(1);
commonDialog.alert({ commonDialog.alert({
title: 'Success', title: 'Success',
type: 'success' type: 'success'
@ -176,6 +175,7 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
type: 'Success' type: 'Success'
}); });
$scope.listDetail(1); $scope.listDetail(1);
$scope.record.status=1;
}).then(function (resp) { }).then(function (resp) {
commonDialog.alert({ commonDialog.alert({
title: 'Error', title: 'Error',

@ -21,8 +21,10 @@
</ul> </ul>
<div class="box box-default"> <div class="box box-default">
<div class="box-header">Risk Details</div> <div class="box-header">Risk Details</div>
<div><button type="button" class="btn btn-danger" ng-click="addRemark()">Add Remark</button></div> <div class="box-header" ng-if="record.status==0" style="text-align: right;">
<div><button type="button" class="btn btn-danger" ng-click="dealDirectly()">Close record</button></div> <button type="button" class="btn btn-info" ng-click="addRemark()">Add Remark</button>
<button type="button" class="btn btn-info" ng-click="dealDirectly()">Close record</button>
</div>
<div class="box-body table-responsive"> <div class="box-body table-responsive">
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>

@ -1,5 +1,5 @@
<section class="content-header"> <section class="content-header">
<h1>Phone Top Up</h1> <h1>Add Remark</h1>
</section> </section>
<div class="content"> <div class="content">

Loading…
Cancel
Save