|
|
|
@ -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" }));
|
|
|
|
|