[fix]风控事件注册页面

master
hellolujian 6 years ago
parent 0bb6ad8e08
commit c6aafed536

@ -0,0 +1,25 @@
package au.com.royalpay.payment.manage.mappers.riskbusiness;
import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper;
import cn.yixblog.support.mybatis.autosql.annotations.AutoSql;
import cn.yixblog.support.mybatis.autosql.annotations.SqlType;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Param;
/**
* @Author lvjian
* @Date 2018/10/10 10:25
*/
@AutoMapper(tablename = "risk_event", pkName = "risk_id")
public interface RiskEventMapper {
@AutoSql(type = SqlType.INSERT)
void save(JSONObject riskEvent);
@AutoSql(type = SqlType.UPDATE)
void update(JSONObject riskEvent);
@AutoSql(type = SqlType.SELECT)
JSONObject findById(@Param("risk_id") String riskId);
}

@ -0,0 +1,10 @@
package au.com.royalpay.payment.manage.riskbusiness.core;
/**
* @Author lvjian
* @Date 2018/10/10 10:29
*/
public interface RiskBusinessService {
}

@ -0,0 +1,12 @@
package au.com.royalpay.payment.manage.riskbusiness.core.impl;
import au.com.royalpay.payment.manage.riskbusiness.core.RiskBusinessService;
import org.springframework.stereotype.Service;
/**
* @Author lvjian
* @Date 2018/10/10 10:30
*/
@Service
public class RiskBusinessServiceImpl implements RiskBusinessService {
}

@ -1,7 +1,8 @@
package au.com.royalpay.payment.manage.riskbusiness; package au.com.royalpay.payment.manage.riskbusiness.web;
import au.com.royalpay.payment.manage.permission.manager.ManagerMapping; import au.com.royalpay.payment.manage.permission.manager.ManagerMapping;
import au.com.royalpay.payment.tools.permission.enums.ManagerRole; import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -14,9 +15,14 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/risk/business/") @RequestMapping("/risk/business/")
public class RiskBusinessController { public class RiskBusinessController {
@ManagerMapping(value = "registration", method = RequestMethod.GET, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN}) @ManagerMapping(value = "event", method = RequestMethod.GET, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN})
public String testHello() { public String testHello() {
return "Hello"; return "Hello";
} }
@ManagerMapping(value = "event/{risk_id}", method = RequestMethod.GET, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN})
public JSONObject getRiskEventDetail() {
return null;
}
} }

@ -10,7 +10,17 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
url: '/risk_business', url: '/risk_business',
templateUrl: '/static/analysis/templates/risk_business.html', templateUrl: '/static/analysis/templates/risk_business.html',
controller: 'riskBusinessCtrl' controller: 'riskBusinessCtrl'
}).state('analysis_monitoring.risk_business.detail', {
url: '/{risk_id}/detail',
templateUrl: '/static/analysis/templates/riskEvent_detail.html',
controller: 'riskEventDetailCtrl',
resolve: {
partner: ['$http', '$stateParams', function ($http, $stateParams) {
return $http.get('/risk/business/event' + $stateParams.risk_id);
}]
}
}) })
}]); }]);
app.controller('riskBusinessCtrl', ['$scope', '$http','$filter','chartParser', function ($scope, $http,$filter,chartParser) { app.controller('riskBusinessCtrl', ['$scope', '$http','$filter','chartParser', function ($scope, $http,$filter,chartParser) {

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
欢迎来到riskDetail页面
</body>
</html>

@ -1,10 +1,88 @@
<!DOCTYPE html> <div class="content">
<html lang="en"> <div class="row">
<head> <div class="col-sm-12">
<meta charset="UTF-8"> <div class="box-solid">
<title>Title</title> <div class="box box-warning">
</head> <div class="box-header">
<body> <div class="form-inline">
欢迎来到风控业务流程页面 <div class="form-group">
</body> <label class="control-label" for="partner-code-search">Partner Code</label>
</html> <input type="text" class="form-control" id="partner-code-search"
ng-model="params.client_moniker">
</div>
<div class="form-group">
<button class="btn btn-primary" type="button" ng-click="loadRiskEvents(1)"><i
class="fa fa-search"></i></button>
</div>
</div>
</div>
</div>
<div class="box">
<div class="box-header">
<h3 class="box-title">RiskEvent List</h3>
</div>
<div class="box-body no-padding table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Partner Code</th>
<th>order_type</th>
<th>Sub Merchant ID</th>
<th>Email Status</th>
<th>FillIn Person</th>
<th>Description</th>
<th>Create Time</th>
<th>Operation</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="riskEvent in riskEvents">
<td ng-bind="riskEvent.client_moniker"></td>
<td ng-bind="riskEvent.order_type"></td>
<td ng-bind="riskEvent.sub_merchant_id"></td>
<td>
<span ng-if="riskEvent.email_status == 0">未发送</span>
<span ng-if="riskEvent.email_status == 1">已发送</span>
</td>
<td ng-bind="riskEvent.fillin_person"></td>
<td ng-bind="riskEvent.description | limitTo:20"></td>
<td ng-bind="riskEvent.create_time"></td>
<td>
<a class="text-primary" role="button" title="Detail"
ui-sref="riskEvent.detail({client_apply_id:partner.client_apply_id})">
<i class="fa fa-search"></i> Detail
</a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="box-footer" ng-if="partners.length">
<uib-pagination class="pagination"
total-items="pagination.totalCount"
boundary-links="true"
ng-model="pagination.page"
items-per-page="pagination.limit"
max-size="10"
ng-change="loadPartners()"
previous-text="&lsaquo;"
next-text="&rsaquo;"
first-text="&laquo;"
last-text="&raquo;"></uib-pagination>
<div class="row">
<div class="col-xs-12">Total Records:{{pagination.totalCount}};Total Pages:{{pagination.totalPages}}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Loading…
Cancel
Save