[fix]完善风控业务流程

master
hellolujian 6 years ago
parent 8502b52c3f
commit d0532b21da

@ -26,7 +26,6 @@ public interface RiskEventMapper {
@AutoSql(type = SqlType.SELECT)
List<JSONObject> findAll(JSONObject params);
@AutoSql(type = SqlType.SELECT)
PageList<JSONObject> listRisksByPage(JSONObject params, PageBounds pageBounds);
@AutoSql(type = SqlType.SELECT)

@ -32,6 +32,13 @@ public interface RiskBusinessService {
*/
JSONObject getRiskEventDetail(String riskId);
/**
*
* @param orderIds
* @return
*/
List<JSONObject> getRiskEventOrderList(String orderIds);
/**
*
* @param params

@ -1,5 +1,6 @@
package au.com.royalpay.payment.manage.riskbusiness.core.impl;
import au.com.royalpay.payment.manage.mappers.payment.OrderMapper;
import au.com.royalpay.payment.manage.mappers.riskbusiness.RiskEventMapper;
import au.com.royalpay.payment.manage.riskbusiness.core.RiskBusinessService;
import au.com.royalpay.payment.tools.utils.PageListUtils;
@ -10,6 +11,7 @@ import com.github.miemiedev.mybatis.paginator.domain.PageList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
@ -22,6 +24,9 @@ public class RiskBusinessServiceImpl implements RiskBusinessService {
@Autowired
private RiskEventMapper riskEventMapper;
@Autowired
private OrderMapper orderMapper;
@Override
public List<JSONObject> getRiskEvents(JSONObject params) {
return riskEventMapper.findAll(params);
@ -39,6 +44,23 @@ public class RiskBusinessServiceImpl implements RiskBusinessService {
return riskEventMapper.findById(riskId);
}
@Override
public List<JSONObject> getRiskEventOrderList(String orderIds) {
String[] orderIdArray = orderIds.trim().split(",");
JSONObject query = new JSONObject();
List<JSONObject> tradeLogs = new ArrayList<>();
// 获取每笔订单的信息
for (int i = 0; i < orderIdArray.length; i++) {
query.put("order_id", orderIdArray[i]);
PageList<JSONObject> logs = orderMapper.listOrders(query, new PageBounds());
if (logs != null && logs.size() != 0) {
tradeLogs.add(logs.get(0));
}
}
return tradeLogs;
}
@Override
public void addRiskEvent(JSONObject params) {
riskEventMapper.save(params);

@ -9,10 +9,6 @@ import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
@ -34,8 +30,12 @@ public class RiskBusinessController {
}
@GetMapping(value = "events/{risk_id}")
public JSONObject getRiskEventDetail(@PathVariable("risk_id") String riskId) {
return riskBusinessService.getRiskEventDetail(riskId);
public JSONObject getRiskEventDetail(@PathVariable("risk_id") String riskId,
@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
JSONObject riskEvent = riskBusinessService.getRiskEventDetail(riskId);
List<JSONObject> tradeLogs = riskBusinessService.getRiskEventOrderList(riskEvent.getString("order_ids"));
riskEvent.put("tradeLogs", tradeLogs);
return riskEvent;
}
@PostMapping(value = "events")

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="au.com.royalpay.payment.manage.mappers.riskbusiness.RiskEventMapper">
<select id="listRisksByPage" resultType="com.alibaba.fastjson.JSONObject">
SELECT *
from risk_event
<where>
<if test="client_moniker != null">
AND client_moniker = #{client_moniker}
</if>
<if test="order_type != null">
AND order_type = #{order_type}
</if>
<if test="order_ids != null">
AND order_ids LIKE CONCAT('%', #{order_ids}, '%')
</if>
</where>
</select>
</mapper>

@ -4,13 +4,25 @@
define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
function (angular, $) {
'use strict';
var orderTypes = {
var orderTypesMap = {
"1": "微信调单",
"2": "支付宝调单",
"3": "RoyalPay调单",
"4": "警告",
"5": "通用号调单"
};
var resultTypesMap = {
"0": "未处理",
"1": "处理中",
"2": "已处理"
};
var emailStatusMap = {
"0": "未发送",
"1": "已发送"
};
var app = angular.module('riskBusinessApp', ['ui.router']);
app.config(['$stateProvider', function ($stateProvider) {
$stateProvider.state('analysis_monitoring.risk_business', {
@ -37,7 +49,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
app.controller('riskBusinessCtrl', ['$scope', '$state', '$http', '$uibModal', 'commonDialog',
function ($scope, $state, $http, $uibModal, commonDialog) {
$scope.orderTypes = orderTypes;
$scope.orderTypes = orderTypesMap;
$scope.pagination = {};
$scope.params = {};
@ -51,18 +63,32 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
};
$scope.loadRiskEvents(1);
}
]);
app.controller('riskEventDetailCtrl', ['$scope', '$state', '$http', '$uibModal', '$filter', 'commonDialog', 'riskEvent',
function ($scope, $state, $http, $uibModal, $filter, commonDialog, riskEvent) {
$scope.riskEvent = riskEvent.data;
// 编辑表格的数据保存对象,重新从源数据复制,从而取消保存操作时不会更新视图
$scope.riskEventEdit = angular.copy(riskEvent.data);
// order_type转换为string类型是因为前端select控件这样才会显示初值
$scope.riskEventEdit.order_type += "";
// 调单信息
$scope.tradeLogs = $scope.riskEvent.tradeLogs;
$scope.orderTypes = orderTypesMap;
// 控制编辑表格的显示
$scope.editFlag = false;
$scope.changeEditFlag = function(editFlag) {
$scope.editFlag = !editFlag;
// 如果是在编辑状态需要将日期转换为date类型前端控件需要
// 如果是在非编辑状态需要将日期转换为yyyy-MM-dd格式
if ($scope.editFlag) {
$scope.riskEvent.reply_email_date = new Date($scope.riskEvent.reply_email_date.replace(/-/g, "/"));
$scope.riskEventEdit.reply_email_date = new Date($scope.riskEventEdit.reply_email_date.replace(/-/g, "/"));
} else {
$scope.riskEvent.reply_email_date = $filter('date')($scope.riskEvent.reply_email_date, 'yyyy-MM-dd');
}
@ -78,8 +104,9 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
return;
}
$scope.riskEvent.reply_email_date = $filter('date')($scope.riskEvent.reply_email_date, 'yyyy-MM-dd');
$http.put('/risk/business/events', $scope.riskEvent).then(function (resp) {
// 保存时需要重新将日期转换为yyyy-MM-dd格式传入后端
$scope.riskEventEdit.reply_email_date = $filter('date')($scope.riskEventEdit.reply_email_date, 'yyyy-MM-dd');
$http.put('/risk/business/events', $scope.riskEventEdit).then(function (resp) {
commonDialog.alert({
title: 'Success',
content: 'Update riskEvent successfully',
@ -93,13 +120,14 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
type: 'error'
});
});
}
};
}
]);
app.controller('newRiskEventCtrl', ['$scope', '$state', '$http', '$uibModal', '$filter', 'commonDialog',
function ($scope, $state, $http, $uibModal, $filter, commonDialog) {
$scope.orderTypes = orderTypes;
$scope.orderTypes = orderTypesMap;
$scope.save = function(form) {
if (form.$invalid) {
@ -111,6 +139,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
return;
}
// 默认设置邮件回复截止日期为七天后
var replyDeadline = new Date();
replyDeadline.setDate(replyDeadline.getDate() + 7);
$scope.riskEvent.reply_email_date = $filter('date')(replyDeadline, 'yyyy-MM-dd');
@ -133,5 +162,26 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
}
]);
// 调单类型过滤器
app.filter('orderType', function() {
return function(type) {
return orderTypesMap[type];
}
});
// 处理结果过滤器
app.filter('resultType', function() {
return function(type) {
return resultTypesMap[type];
}
});
// 邮件发送状态过滤器
app.filter('emailStatus', function() {
return function(status) {
return emailStatusMap[status];
}
});
return app;
});

@ -12,23 +12,30 @@
<div class="form-horizontal">
<div class="form-group"
ng-class="{'has-error':riskEventForm.client_moniker.$invalid && riskEventForm.client_moniker.$dirty}">
<label class="control-label col-sm-2" for="short-id-input">* Partner Code</label>
<label class="control-label col-sm-2"
for="short-id-input">* Partner Code
</label>
<div class="col-sm-8">
<input class="form-control text-uppercase"
<input class="form-control"
ng-model="riskEvent.client_moniker"
type="text"
name="client_moniker"
id="short-id-input" required maxlength="6"
id="short-id-input"
required
maxlength="6"
ng-pattern="/^[a-zA-Z0-9]+$/">
<div ng-messages="riskEventForm.client_moniker.$error"
ng-if="riskEventForm.client_moniker.$dirty">
<p class="small text-danger" ng-message="required">Required
Field</p>
<p class="small text-danger" ng-message="maxlength">Less
Than 6 Letters</p>
<p class="small text-danger" ng-message="pattern">Only
Uppercase Letters and
Numbers are allowed</p>
<p class="small text-danger"
ng-message="required">Required Field
</p>
<p class="small text-danger"
ng-message="maxlength">Less Than 6 Letters
</p>
<p class="small text-danger"
ng-message="pattern">
Only Uppercase Letters and Numbers are allowed
</p>
</div>
</div>
</div>
@ -36,18 +43,21 @@
<div class="form-group"
ng-class="{'has-error':riskEventForm.order_type.$invalid && riskEventForm.order_type.$dirty}">
<label class="control-label col-sm-2"
for="order-type-input">Order Type</label>
for="order-type-input">Order Type
</label>
<div class="col-sm-8">
<select class="form-control" name="order_type"
<select class="form-control"
name="order_type"
ng-model="riskEvent.order_type"
id="order-type-input" required
id="order-type-input"
required
ng-options="key as value for (key, value) in orderTypes">
<option value="">Please Choose</option>
</select>
<div ng-messages="riskEventForm.order_type.$error"
ng-if="riskEventForm.order_type.$dirty">
<p class="small text-danger" ng-message="required">
required field
<p class="small text-danger"
ng-message="required">required field
</p>
</div>
</div>
@ -55,40 +65,46 @@
<div class="form-group"
ng-class="{'has-error':riskEventForm.order_ids.$invalid && riskEventForm.order_ids.$dirty}">
<label class="control-label col-sm-2" for="order-ids-input">Order IDs</label>
<label class="control-label col-sm-2"
for="order-ids-input">Order IDs</label>
<div class="col-sm-8">
<input class="form-control" ng-model="riskEvent.order_ids" type="text"
<input class="form-control"
ng-model="riskEvent.order_ids"
type="text"
name="order_ids"
id="order-ids-input"
required>
<div ng-messages="riskEventForm.order_ids.$error"
ng-if="riskEventForm.order_ids.$dirty">
<p class="small text-danger" ng-message="required">
required field
<p class="small text-danger"
ng-message="required">required field
</p>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="description-input">Description</label>
<label class="control-label col-sm-2"
for="description-input">Description
</label>
<div class="col-sm-8">
<input class="form-control" ng-model="riskEvent.description" type="text"
<input class="form-control"
ng-model="riskEvent.description"
type="text"
name="description"
id="description-input">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="btn-group margin-bottom margin-top">
<button class="btn btn-success" type="button" ng-click="save(riskEventForm)">Save
<button class="btn btn-success"
type="button"
ng-click="save(riskEventForm)">Save
</button>
</div>
</form>

@ -10,36 +10,55 @@
<div class="panel panel-default">
<div class="panel-heading">
RiskEvent Basic Information
<a role="button" class="pull-right"
<a role="button"
class="pull-right"
ng-click="changeEditFlag(editFlag)">
<i class="fa fa-edit"></i> Edit
</a>
</div>
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2">Partner Code</label>
<div class="col-sm-10">
<p class="form-control-static" ng-bind="riskEvent.client_moniker"></p>
<p class="form-control-static"
ng-bind="riskEvent.client_moniker"></p>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">Order IDs</label>
<div class="col-sm-10">
<p class="form-control-static"
ng-bind="riskEvent.order_ids">
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">Order Type</label>
<div class="col-sm-10">
<p class="form-control-static" ng-bind="riskEvent.order_type"></p>
<p class="form-control-static"
ng-bind="riskEvent.order_type | orderType">
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">Result Type</label>
<div class="col-sm-10">
<p class="form-control-static" ng-bind="riskEvent.result_type"></p>
<p class="form-control-static">
{{riskEvent.result_type | resultType}}
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">Email Status</label>
<div class="col-sm-10">
<p class="form-control-static" ng-bind="riskEvent.email_status"></p>
<p class="form-control-static"
ng-bind="riskEvent.email_status | emailStatus"></p>
</div>
</div>
@ -55,13 +74,15 @@
<div class="form-group">
<label class="control-label col-sm-2">Description</label>
<div class="col-sm-10">
<p class="form-control-static" ng-bind="riskEvent.description"></p>
<p class="form-control-static"
ng-bind="riskEvent.description">
</p>
</div>
</div>
</div>
</div>
</div>
<!-- 调单信息 -->
<div class="box">
<div class="box-header">
@ -69,6 +90,7 @@
Orders Information
</h3>
</div>
<div class="box-body table-responsive">
<table class="table table-bordered table-hover table-striped">
<thead>
@ -84,32 +106,32 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="trade in tradeLogs" ng-class="{warning:trade.clearing_status==2}">
<tr ng-repeat="trade in tradeLogs"
ng-class="{warning:trade.clearing_status==2}">
<td>{{trade.order_id}}</td>
<td>{{trade.total_amount|currency:trade.currency}}</td>
<td ng-bind="trade.display_amount|currency:trade.currency"></td>
<td ng-bind="trade.clearing_amount|currency:'AUD'"></td>
<td>{{trade.total_amount | currency: trade.currency}}</td>
<td ng-bind="trade.display_amount | currency: trade.currency"></td>
<td ng-bind="trade.clearing_amount | currency: 'AUD'"></td>
<td>
<span ng-if="(trade.channel != 'hf') && (trade.channel != 'Rpay')" ng-bind="trade.exchange_rate"></span>
<span ng-if="(trade.channel != 'hf') && (trade.channel != 'Rpay')"
ng-bind="trade.exchange_rate">
</span>
<span ng-if="(trade.channel == 'hf') || (trade.channel == 'Rpay')"> - </span>
</td>
<td ng-bind="trade.status|tradeStatus"></td>
<td ng-bind="trade.status | tradeStatus"></td>
<td ng-bind="trade.create_time"></td>
<td ng-bind="trade.gateway|tradeGateway"></td>
<td ng-bind="trade.gateway | tradeGateway"></td>
</tr>
</tbody>
</table>
</div>
</div>
<a role="button" class="btn btn-info">
Send Email
<a role="button"
class="btn btn-info">Send Email
</a>
</div>
</div>
</div>
</div>
@ -122,23 +144,30 @@
<div class="form-horizontal">
<div class="form-group"
ng-class="{'has-error':riskEventForm.client_moniker.$invalid && riskEventForm.client_moniker.$dirty}">
<label class="control-label col-sm-2" for="short-id-input">* Partner Code</label>
<label class="control-label col-sm-2"
for="short-id-input">* Partner Code
</label>
<div class="col-sm-8">
<input class="form-control text-uppercase"
ng-model="riskEvent.client_moniker"
ng-model="riskEventEdit.client_moniker"
type="text"
name="client_moniker"
id="short-id-input" required maxlength="6"
id="short-id-input"
required
maxlength="6"
ng-pattern="/^[a-zA-Z0-9]+$/">
<div ng-messages="riskEventForm.client_moniker.$error"
ng-if="riskEventForm.client_moniker.$dirty">
<p class="small text-danger" ng-message="required">Required
Field</p>
<p class="small text-danger" ng-message="maxlength">Less
Than 6 Letters</p>
<p class="small text-danger" ng-message="pattern">Only
Uppercase Letters and
Numbers are allowed</p>
<p class="small text-danger"
ng-message="required">Required Field
</p>
<p class="small text-danger"
ng-message="maxlength">Less Than 6 Letters
</p>
<p class="small text-danger"
ng-message="pattern">
Only Uppercase Letters and Numbers are allowed
</p>
</div>
</div>
</div>
@ -146,18 +175,22 @@
<div class="form-group"
ng-class="{'has-error':riskEventForm.order_type.$invalid && riskEventForm.order_type.$dirty}">
<label class="control-label col-sm-2"
for="order-type-input">Order Type</label>
for="order-type-input">Order Type
</label>
<div class="col-sm-8">
<select class="form-control" name="order_type"
ng-model="riskEvent.order_type"
id="order-type-input" required
<select class="form-control"
name="order_type"
ng-model="riskEventEdit.order_type"
id="order-type-input"
required
ng-options="key as value for (key, value) in orderTypes">
<option value="">Please Choose</option>
</select>
<div ng-messages="riskEventForm.order_type.$error"
ng-if="riskEventForm.order_type.$dirty">
<p class="small text-danger" ng-message="required">
required field
<p class="small text-danger"
ng-message="required">required field
</p>
</div>
</div>
@ -165,29 +198,38 @@
<div class="form-group"
ng-class="{'has-error':riskEventForm.order_ids.$invalid && riskEventForm.order_ids.$dirty}">
<label class="control-label col-sm-2" for="order-ids-input">Order IDs</label>
<label class="control-label col-sm-2"
for="order-ids-input">Order IDs
</label>
<div class="col-sm-8">
<input class="form-control" ng-model="riskEvent.order_ids" type="text"
<input class="form-control"
ng-model="riskEventEdit.order_ids"
type="text"
name="order_ids"
id="order-ids-input"
required>
<div ng-messages="riskEventForm.order_ids.$error"
ng-if="riskEventForm.order_ids.$dirty">
<p class="small text-danger" ng-message="required">
required field
<p class="small text-danger"
ng-message="required">required field
</p>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="reply-deadline-input">Reply Deadline</label>
<label class="control-label col-sm-2"
for="reply-deadline-input">Reply Deadline
</label>
<div class="col-sm-8">
<div style="display: inline-block">
<input class="form-control" id="reply-deadline-input"
<input class="form-control"
id="reply-deadline-input"
type="text"
ng-model="riskEvent.reply_email_date"
uib-datepicker-popup size="10" placeholder="Reply Deadline"
ng-model="riskEventEdit.reply_email_date"
uib-datepicker-popup
size="10"
placeholder="Reply Deadline"
is-open="replyDeadline.open"
ng-click="replyDeadline.open=true"
datepicker-options="{minDate:today}">
@ -196,33 +238,32 @@
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="description-input">Description</label>
<label class="control-label col-sm-2"
for="description-input">Description
</label>
<div class="col-sm-8">
<input class="form-control" ng-model="riskEvent.description" type="text"
<input class="form-control"
ng-model="riskEventEdit.description"
type="text"
name="description"
id="description-input">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="btn-group margin-bottom margin-top">
<button class="btn btn-success"
style="margin-right: 10px;"
type="button"
ng-click="save(riskEventForm)">
Save
ng-click="save(riskEventForm)">Save
</button>
<button class="btn btn-warning"
type="button"
ng-click="changeEditFlag(editFlag)">
cancel
ng-click="changeEditFlag(editFlag)">cancel
</button>
</div>
</form>

@ -6,17 +6,22 @@
<div class="box-header">
<div class="form-inline">
<div class="form-group">
<label class="control-label" for="partner-code-search">Partner Code</label>
<input type="text" class="form-control" id="partner-code-search"
ng-model="params.client_moniker">
<label class="control-label"
for="partner-code-search">Partner Code
</label>
<input type="text"
class="form-control"
id="partner-code-search"
ng-model="params.clientMoniker">
</div>
<div class="form-group">
<label class="control-label" for="order-type-input">
Order Type
<label class="control-label"
for="order-type-input">Order Type
</label>
<select class="form-control" name="order_type"
ng-model="params.order_type"
<select class="form-control"
name="order_type"
ng-model="params.orderType"
id="order-type-input"
ng-options="key as value for (key, value) in orderTypes">
<option value="">ALL</option>
@ -24,28 +29,34 @@
</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 class="form-group">
<label class="control-label col-sm-2" for="order-ids-input">Order IDs</label>
<div class="col-sm-8">
<input class="form-control" ng-model="params.order_ids" type="text"
<label class="control-label"
for="order-ids-input">Order IDs
</label>
<input class="form-control"
ng-model="params.orderIds"
type="text"
name="order_ids"
id="order-ids-input">
</div>
<div class="form-group">
<button class="btn btn-primary"
type="button"
ng-click="loadRiskEvents(1)">
<i class="fa fa-search"></i>
</button>
</div>
<a role="button" class="btn btn-info pull-right"
ui-sref=".new_riskEvent" title="New Event">
<i class="fa fa-plus"></i>
New Event
<a role="button"
class="btn btn-info pull-right"
ui-sref=".new_riskEvent"
title="New Event">
<i class="fa fa-plus"></i>New Event
</a>
</div>
</div>
</div>
<div class="box">
<div class="box-header">
<h3 class="box-title">RiskEvent List</h3>
@ -55,7 +66,6 @@
<table class="table table-striped">
<thead>
<tr>
<th>Partner Code</th>
<th>Order Type</th>
<th>Result Type</th>
@ -70,28 +80,17 @@
<tbody>
<tr ng-repeat="riskEvent in riskEvents">
<td ng-bind="riskEvent.client_moniker"></td>
<td>
<span ng-if="riskEvent.order_type == 1">微信调单</span>
<span ng-if="riskEvent.order_type == 2">支付宝调单</span>
<span ng-if="riskEvent.order_type == 3">RoyalPay调单</span>
<span ng-if="riskEvent.order_type == 4">警告</span>
<span ng-if="riskEvent.order_type == 5">通用号调单</span>
</td>
<td>
<span ng-if="riskEvent.result_type == 0">未处理</span>
<span ng-if="riskEvent.result_type == 1">处理中</span>
<span ng-if="riskEvent.result_type == 2">已处理</span>
</td>
<td ng-bind="riskEvent.order_type | orderType"></td>
<td ng-bind="riskEvent.result_type | resultType"></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.email_status | emailStatus"></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"
<a class="text-primary"
role="button"
title="Detail"
ui-sref="analysis_monitoring.riskEvent_detail({risk_id:riskEvent.risk_id})">
<i class="fa fa-search"></i> Detail
</a>
@ -99,9 +98,10 @@
</tr>
</tbody>
</table>
</div>
<div class="box-footer" ng-if="riskEvents.length">
<div class="box-footer"
ng-if="riskEvents.length">
<uib-pagination class="pagination"
total-items="pagination.totalCount"
boundary-links="true"
@ -112,17 +112,16 @@
previous-text="&lsaquo;"
next-text="&rsaquo;"
first-text="&laquo;"
last-text="&raquo;"></uib-pagination>
last-text="&raquo;">
</uib-pagination>
<div class="row">
<div class="col-xs-12">Total Records:{{pagination.totalCount}};Total Pages:{{pagination.totalPages}}</div>
<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