风控记录增加筛选

master
yuan 7 years ago
parent c0bd0d4d6c
commit 015e1e388d

@ -2,6 +2,7 @@ package au.com.royalpay.payment.manage.risk.bean;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.time.DateUtils;
import java.text.ParseException;
@ -19,10 +20,18 @@ public class QueryRiskRecord {
public JSONObject toParams() {
JSONObject params = new JSONObject();
params.put("status", this.status);
params.put("client_moniker", this.client_moniker);
params.put("record_id", this.record_id);
params.put("client_id", this.client_id);
if(StringUtils.isNotEmpty(status)){
params.put("status", this.status);
}
if(StringUtils.isNotEmpty(client_moniker)){
params.put("client_moniker", this.client_moniker);
}
if(StringUtils.isNotEmpty(record_id)){
params.put("record_id", this.record_id);
}
if(StringUtils.isNotEmpty(String.valueOf(client_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" }));

@ -7,7 +7,37 @@
</ol>
</section>
<section class="content">
<div class="box box-default">
<div class="box box-warning">
<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-enter="loadRecords(1)"
ng-model="params.client_moniker">
</div>
&nbsp;&nbsp;
<div class="form-group">
<label class="control-label" for="status-search">Status</label>
<select ng-model="params.status" id="status-search"
ng-change="loadRecords(1)"
class="form-control" style="min-width: 200px;">
<option value="">All</option>
<option value="0">未处理</option>
<option value="1">已处理</option>
<option value="2">处理中</option>
</select>
<!--<input type="text" class="form-control" id="status-search"
ng-model="params.status">-->
</div>
<div class="form-group">
<button class="btn btn-primary" type="button" ng-click="loadRecords(1)"><i
class="fa fa-search"></i></button>
</div>
</div>
</div>
</div>
<div class="box box-warning">
<div class="box-header">Records</div>
<div class="box-body table-responsive">
<table class="table table-hover">

Loading…
Cancel
Save