parent
33db182dfb
commit
47df91b1c5
@ -0,0 +1,70 @@
|
||||
package au.com.royalpay.payment.manage.risk.bean;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import org.apache.commons.lang3.time.DateUtils;
|
||||
|
||||
import java.text.ParseException;
|
||||
|
||||
public class QueryRiskDetail {
|
||||
|
||||
private String record_id;
|
||||
private String c_end_time;
|
||||
private int client_id;
|
||||
|
||||
private int limit = 20;
|
||||
private int page;
|
||||
|
||||
public JSONObject toParams() {
|
||||
JSONObject params = new JSONObject();
|
||||
params.put("record_id", this.record_id);
|
||||
params.put("client_id", this.client_id);
|
||||
try {
|
||||
if (c_end_time != null) {
|
||||
params.put("c_end_time", DateUtils.parseDate(this.c_end_time, new String[] { "yyyy-MM-dd HH:mm:ss" }));
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
}
|
||||
return params;
|
||||
}
|
||||
|
||||
public String getRecord_id() {
|
||||
return record_id;
|
||||
}
|
||||
|
||||
public void setRecord_id(String record_id) {
|
||||
this.record_id = record_id;
|
||||
}
|
||||
|
||||
public String getC_end_time() {
|
||||
return c_end_time;
|
||||
}
|
||||
|
||||
public void setC_end_time(String c_end_time) {
|
||||
this.c_end_time = c_end_time;
|
||||
}
|
||||
|
||||
public int getClient_id() {
|
||||
return client_id;
|
||||
}
|
||||
|
||||
public void setClient_id(int client_id) {
|
||||
this.client_id = client_id;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public int getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
<?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.risk.RiskMerchantDetailLogMapper">
|
||||
<select id="query" resultType="com.alibaba.fastjson.JSONObject">
|
||||
select *
|
||||
from risk_merchant_detail_log
|
||||
<where>
|
||||
<if test="record_id!=null">
|
||||
and record_id = #{record_id}
|
||||
</if>
|
||||
<if test="client_id!=0">
|
||||
and client_id = #{client_id}
|
||||
</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,63 @@
|
||||
<div ui-view>
|
||||
<section class="content-header">
|
||||
<h1>Risk Manager</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><i class="fa fa-gift"></i> Risk</li>
|
||||
<li class="fa fa-gift">Risk Manager</li>
|
||||
<li class="active">Risk Detail</li>
|
||||
</ol>
|
||||
</section>
|
||||
<section class="content">
|
||||
<ul class="nav nav-tabs">
|
||||
<li ui-sref-active-eq="active">
|
||||
<a ui-sref="analysis_monitoring.risk_orders({'record_id':record.id})">Risk Orders</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="analysis_monitoring.risk_history({'record_id':record.id})">Risk history</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="analysis_monitoring.risk_detail({'record_id':record.id})">Risk Detail</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="box box-default">
|
||||
<div class="box-header">Risk Details</div>
|
||||
<div><button type="button" class="btn btn-danger" ng-click="addRemark()">Add Remark</button></div>
|
||||
<div><button type="button" class="btn btn-danger" ng-click="dealDirectly()">Close record</button></div>
|
||||
<div class="box-body table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Create Time</th>
|
||||
<th>auditor</th>
|
||||
<th>operation</th>
|
||||
<th>remark</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="record in details">
|
||||
<td>{{record.create_time}}</td>
|
||||
<td>{{record.auditor}}</td>
|
||||
<td>{{record.operation}}</td>
|
||||
<td>{{record.remark}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer">
|
||||
<uib-pagination ng-if="details.length"
|
||||
class="pagination"
|
||||
total-items="pagination.totalCount"
|
||||
boundary-links="true"
|
||||
ng-model="pagination.page"
|
||||
items-per-page="pagination.limit"
|
||||
max-size="10"
|
||||
ng-change="listDetail()"
|
||||
previous-text="‹"
|
||||
next-text="›"
|
||||
first-text="«"
|
||||
last-text="»"></uib-pagination>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
@ -0,0 +1,25 @@
|
||||
<section class="content-header">
|
||||
<h1>Phone Top Up</h1>
|
||||
</section>
|
||||
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="box-solid">
|
||||
<div class="box box-warning">
|
||||
<div class="box-header">
|
||||
<form role="form" style="margin:0px auto;width: 50%">
|
||||
<div class="form-group">
|
||||
<label>remark</label>
|
||||
<input ng-model="addRemarkParams.remark" name="code" class="form-control" type="text"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary btn-block" ng-click="addRemark()">commit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in new issue