commit
dd11125c0f
@ -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>
|
@ -1,230 +1,306 @@
|
|||||||
<div ui-view>
|
<div class="content">
|
||||||
|
<!--
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1>Risk Event</h1>
|
<h1>Risk Event</h1>
|
||||||
</section>
|
</section>-->
|
||||||
<div class="content">
|
<div class="row">
|
||||||
<div class="row" ng-if="!editFlag">
|
<div class="col-sm-12">
|
||||||
<div class="col-sm-12">
|
<div class="nav-tabs-custom">
|
||||||
<div class="nav-tabs-custom">
|
<ul class="nav nav-tabs">
|
||||||
<div class="tab-content">
|
<li ui-sref-active-eq="active">
|
||||||
<div class="panel panel-default">
|
<a ui-sref="analysis_monitoring.riskEvent_detail">Risk Detail</a>
|
||||||
<div class="panel-heading">
|
</li>
|
||||||
RiskEvent Basic Information
|
<li ui-sref-active="active">
|
||||||
<a role="button" class="pull-right"
|
<a ui-sref=".audit_material">Audit material</a>
|
||||||
ng-click="changeEditFlag(editFlag)">
|
</li>
|
||||||
<i class="fa fa-edit"></i> Edit
|
</ul>
|
||||||
</a>
|
<div class="tab-content" ui-view>
|
||||||
</div>
|
<div class="row" ng-if="!editFlag">
|
||||||
<div class="panel-body">
|
<div class="col-sm-12">
|
||||||
<div class="form-horizontal">
|
<div class="nav-tabs-custom">
|
||||||
<div class="form-group">
|
<div class="tab-content">
|
||||||
<label class="control-label col-sm-2">Partner Code</label>
|
<div class="panel panel-default">
|
||||||
<div class="col-sm-10">
|
<div class="panel-heading">
|
||||||
<p class="form-control-static" ng-bind="riskEvent.client_moniker"></p>
|
RiskEvent Basic Information
|
||||||
</div>
|
<a role="button"
|
||||||
</div>
|
class="pull-right"
|
||||||
<div class="form-group">
|
ng-click="changeEditFlag(editFlag)">
|
||||||
<label class="control-label col-sm-2">Order Type</label>
|
<i class="fa fa-edit"></i> Edit
|
||||||
<div class="col-sm-10">
|
</a>
|
||||||
<p class="form-control-static" ng-bind="riskEvent.order_type"></p>
|
|
||||||
</div>
|
</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>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="panel-body">
|
||||||
<label class="control-label col-sm-2">Email Status</label>
|
<div class="form-horizontal">
|
||||||
<div class="col-sm-10">
|
<div class="form-group">
|
||||||
<p class="form-control-static" ng-bind="riskEvent.email_status"></p>
|
<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>
|
||||||
|
</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 | 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">
|
||||||
|
{{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 | emailStatus"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-sm-2">Reply Deadline</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<p class="form-control-static">
|
||||||
|
{{riskEvent.reply_email_date | limitTo:10}}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-sm-2">临时关闭渠道</label>
|
||||||
|
<div class="col-xs-6">
|
||||||
|
<input type="checkbox"
|
||||||
|
ng-if="riskEvent.order_type == '1'"
|
||||||
|
ng-model="clientInfo.enable_wechat"
|
||||||
|
bs-switch ng-change="updateChannel(riskEvent.order_type)">
|
||||||
|
<input type="checkbox"
|
||||||
|
ng-if="riskEvent.order_type == '2'"
|
||||||
|
ng-model="clientInfo.enable_alipay"
|
||||||
|
bs-switch ng-change="updateChannel(riskEvent.order_type)">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-sm-2">临时关闭商户</label>
|
||||||
|
<div class="col-xs-6">
|
||||||
|
<input type="checkbox" ng-model="clientInfo.is_valid" bs-switch ng-change="updateClient(clientInfo.is_valid)">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<!-- 调单信息 -->
|
||||||
<label class="control-label col-sm-2">Reply Deadline</label>
|
<div class="box">
|
||||||
<div class="col-sm-10">
|
<div class="box-header">
|
||||||
<p class="form-control-static">
|
<h3 class="box-title" style="display: inherit">
|
||||||
{{riskEvent.reply_email_date | limitTo:10}}
|
Orders Information
|
||||||
</p>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="box-body table-responsive">
|
||||||
<label class="control-label col-sm-2">Description</label>
|
<table class="table table-bordered table-hover table-striped">
|
||||||
<div class="col-sm-10">
|
<thead>
|
||||||
<p class="form-control-static" ng-bind="riskEvent.description"></p>
|
<tr>
|
||||||
|
<th>Order ID</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
<th>Input Amount</th>
|
||||||
|
<th>AUD Amount</th>
|
||||||
|
<th>Exchange Rate</th>
|
||||||
|
<th>Status</th>
|
||||||
|
<th>Create Time</th>
|
||||||
|
<th>Gateway</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<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>
|
||||||
|
<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.create_time"></td>
|
||||||
|
<td ng-bind="trade.gateway | tradeGateway"></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<a role="button"
|
||||||
|
class="btn btn-info">Send Email
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 调单信息 -->
|
|
||||||
<div class="box">
|
|
||||||
<div class="box-header">
|
|
||||||
<h3 class="box-title" style="display: inherit">
|
|
||||||
Orders Information
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
<div class="box-body table-responsive">
|
|
||||||
<table class="table table-bordered table-hover table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Order ID</th>
|
|
||||||
<th>Amount</th>
|
|
||||||
<th>Input Amount</th>
|
|
||||||
<th>AUD Amount</th>
|
|
||||||
<th>Exchange Rate</th>
|
|
||||||
<th>Status</th>
|
|
||||||
<th>Create Time</th>
|
|
||||||
<th>Gateway</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<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>
|
|
||||||
<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.create_time"></td>
|
|
||||||
<td ng-bind="trade.gateway|tradeGateway"></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a role="button" class="btn btn-info">
|
|
||||||
Send Email
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
<form novalidate name="riskEventForm" ng-if="editFlag">
|
||||||
</div>
|
<div class="row">
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">RiskEvent Basic Information</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<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>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input class="form-control text-uppercase"
|
||||||
|
ng-model="riskEventEdit.client_moniker"
|
||||||
|
type="text"
|
||||||
|
name="client_moniker"
|
||||||
|
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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<form novalidate name="riskEventForm" ng-if="editFlag">
|
<div class="form-group"
|
||||||
<div class="row">
|
ng-class="{'has-error':riskEventForm.order_type.$invalid && riskEventForm.order_type.$dirty}">
|
||||||
<div class="col-sm-12">
|
<label class="control-label col-sm-2"
|
||||||
<div class="panel panel-default">
|
for="order-type-input">Order Type
|
||||||
<div class="panel-heading">RiskEvent Basic Information</div>
|
</label>
|
||||||
<div class="panel-body">
|
<div class="col-sm-8">
|
||||||
<div class="form-horizontal">
|
<select class="form-control"
|
||||||
<div class="form-group"
|
name="order_type"
|
||||||
ng-class="{'has-error':riskEventForm.client_moniker.$invalid && riskEventForm.client_moniker.$dirty}">
|
ng-model="riskEventEdit.order_type"
|
||||||
<label class="control-label col-sm-2" for="short-id-input">* Partner Code</label>
|
id="order-type-input"
|
||||||
<div class="col-sm-8">
|
required
|
||||||
<input class="form-control text-uppercase"
|
ng-options="key as value for (key, value) in orderTypes">
|
||||||
ng-model="riskEvent.client_moniker"
|
<option value="">Please Choose</option>
|
||||||
type="text"
|
</select>
|
||||||
name="client_moniker"
|
|
||||||
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>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group"
|
<div ng-messages="riskEventForm.order_type.$error"
|
||||||
ng-class="{'has-error':riskEventForm.order_type.$invalid && riskEventForm.order_type.$dirty}">
|
ng-if="riskEventForm.order_type.$dirty">
|
||||||
<label class="control-label col-sm-2"
|
<p class="small text-danger"
|
||||||
for="order-type-input">Order Type</label>
|
ng-message="required">required field
|
||||||
<div class="col-sm-8">
|
</p>
|
||||||
<select class="form-control" name="order_type"
|
</div>
|
||||||
ng-model="riskEvent.order_type"
|
</div>
|
||||||
id="order-type-input" required
|
</div>
|
||||||
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>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group"
|
<div class="form-group"
|
||||||
ng-class="{'has-error':riskEventForm.order_ids.$invalid && riskEventForm.order_ids.$dirty}">
|
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"
|
||||||
<div class="col-sm-8">
|
for="order-ids-input">Order IDs
|
||||||
<input class="form-control" ng-model="riskEvent.order_ids" type="text"
|
</label>
|
||||||
name="order_ids"
|
<div class="col-sm-8">
|
||||||
id="order-ids-input"
|
<input class="form-control"
|
||||||
required>
|
ng-model="riskEventEdit.order_ids"
|
||||||
<div ng-messages="riskEventForm.order_ids.$error"
|
type="text"
|
||||||
ng-if="riskEventForm.order_ids.$dirty">
|
name="order_ids"
|
||||||
<p class="small text-danger" ng-message="required">
|
id="order-ids-input"
|
||||||
required field
|
required>
|
||||||
</p>
|
<div ng-messages="riskEventForm.order_ids.$error"
|
||||||
</div>
|
ng-if="riskEventForm.order_ids.$dirty">
|
||||||
</div>
|
<p class="small text-danger"
|
||||||
</div>
|
ng-message="required">required field
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<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"
|
||||||
<div class="col-sm-8">
|
for="reply-deadline-input">Reply Deadline
|
||||||
<div style="display: inline-block">
|
</label>
|
||||||
<input class="form-control" id="reply-deadline-input"
|
<div class="col-sm-8">
|
||||||
type="text"
|
<div style="display: inline-block">
|
||||||
ng-model="riskEvent.reply_email_date"
|
<input class="form-control"
|
||||||
uib-datepicker-popup size="10" placeholder="Reply Deadline"
|
id="reply-deadline-input"
|
||||||
is-open="replyDeadline.open"
|
type="text"
|
||||||
ng-click="replyDeadline.open=true"
|
ng-model="riskEventEdit.reply_email_date"
|
||||||
datepicker-options="{minDate:today}">
|
uib-datepicker-popup
|
||||||
</div>
|
size="10"
|
||||||
</div>
|
placeholder="Reply Deadline"
|
||||||
</div>
|
is-open="replyDeadline.open"
|
||||||
|
ng-click="replyDeadline.open=true"
|
||||||
|
datepicker-options="{minDate:today}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-sm-2" for="description-input">Description</label>
|
<label class="control-label col-sm-2"
|
||||||
<div class="col-sm-8">
|
for="description-input">Description
|
||||||
<input class="form-control" ng-model="riskEvent.description" type="text"
|
</label>
|
||||||
name="description"
|
<div class="col-sm-8">
|
||||||
id="description-input">
|
<input class="form-control"
|
||||||
|
ng-model="riskEventEdit.description"
|
||||||
|
type="text"
|
||||||
|
name="description"
|
||||||
|
id="description-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</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
|
||||||
|
</button>
|
||||||
|
<button class="btn btn-warning"
|
||||||
|
type="button"
|
||||||
|
ng-click="changeEditFlag(editFlag)">cancel
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
</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
|
|
||||||
</button>
|
|
||||||
<button class="btn btn-warning"
|
|
||||||
type="button"
|
|
||||||
ng-click="changeEditFlag(editFlag)">
|
|
||||||
cancel
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in new issue