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">
|
||||
<h1>Risk Event</h1>
|
||||
</section>
|
||||
<div class="content">
|
||||
<div class="row" ng-if="!editFlag">
|
||||
<div class="col-sm-12">
|
||||
<div class="nav-tabs-custom">
|
||||
<div class="tab-content">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
RiskEvent Basic Information
|
||||
<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>
|
||||
</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>
|
||||
</section>-->
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li ui-sref-active-eq="active">
|
||||
<a ui-sref="analysis_monitoring.riskEvent_detail">Risk Detail</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref=".audit_material">Audit material</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content" ui-view>
|
||||
<div class="row" ng-if="!editFlag">
|
||||
<div class="col-sm-12">
|
||||
<div class="nav-tabs-custom">
|
||||
<div class="tab-content">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
RiskEvent Basic Information
|
||||
<a role="button"
|
||||
class="pull-right"
|
||||
ng-click="changeEditFlag(editFlag)">
|
||||
<i class="fa fa-edit"></i> Edit
|
||||
</a>
|
||||
</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">
|
||||
<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>
|
||||
<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>
|
||||
</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 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 class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title" style="display: inherit">
|
||||
Orders Information
|
||||
</h3>
|
||||
</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 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 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 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="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="riskEvent.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>
|
||||
<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>
|
||||
<div class="col-sm-8">
|
||||
<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 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>
|
||||
<div class="col-sm-8">
|
||||
<select class="form-control" name="order_type"
|
||||
ng-model="riskEvent.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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<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"
|
||||
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>
|
||||
<div class="col-sm-8">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<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>
|
||||
<div class="col-sm-8">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<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"
|
||||
type="text"
|
||||
ng-model="riskEvent.reply_email_date"
|
||||
uib-datepicker-popup size="10" placeholder="Reply Deadline"
|
||||
is-open="replyDeadline.open"
|
||||
ng-click="replyDeadline.open=true"
|
||||
datepicker-options="{minDate:today}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<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"
|
||||
type="text"
|
||||
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}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<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"
|
||||
name="description"
|
||||
id="description-input">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2"
|
||||
for="description-input">Description
|
||||
</label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control"
|
||||
ng-model="riskEventEdit.description"
|
||||
type="text"
|
||||
name="description"
|
||||
id="description-input">
|
||||
</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 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>
|
Loading…
Reference in new issue