parent
391e254402
commit
498b30c519
@ -0,0 +1,65 @@
|
|||||||
|
package au.com.royalpay.payment.manage.merchants.entity.impls;
|
||||||
|
|
||||||
|
import au.com.royalpay.payment.manage.merchants.entity.ClientModify;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create by yixian at 2018-04-12 16:43
|
||||||
|
*/
|
||||||
|
public class AuditModify extends ClientModify {
|
||||||
|
private Integer source;
|
||||||
|
private Integer open_status;
|
||||||
|
private Integer approve_result;
|
||||||
|
private String approver;
|
||||||
|
private Date approve_time;
|
||||||
|
private String refuse_remark;
|
||||||
|
|
||||||
|
|
||||||
|
public AuditModify(JSONObject account, String clientMoniker, Integer approve_result, String approver, Date approve_time) {
|
||||||
|
super(account, clientMoniker);
|
||||||
|
this.approve_result = approve_result;
|
||||||
|
this.approver = approver;
|
||||||
|
this.approve_time = approve_time;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String business() {
|
||||||
|
return "修改商户source状态为:" + source;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected JSONObject getModifyResult() {
|
||||||
|
JSONObject modify = new JSONObject();
|
||||||
|
modify.put("approve_result",approve_result);
|
||||||
|
modify.put("approver",approver);
|
||||||
|
modify.put("approve_time",approve_time);
|
||||||
|
if(source!=null){
|
||||||
|
modify.put("source",source);
|
||||||
|
}
|
||||||
|
if(open_status!=null){
|
||||||
|
modify.put("open_status",open_status);
|
||||||
|
}
|
||||||
|
if(StringUtils.isNotEmpty(refuse_remark)){
|
||||||
|
modify.put("refuse_remark",refuse_remark);
|
||||||
|
}
|
||||||
|
return modify;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource(Integer source) {
|
||||||
|
this.source = source;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpen_status(Integer open_status) {
|
||||||
|
this.open_status = open_status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRefuse_remark(String refuse_remark) {
|
||||||
|
this.refuse_remark = refuse_remark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
package au.com.royalpay.payment.manage.merchants.entity.impls;
|
||||||
|
|
||||||
|
import au.com.royalpay.payment.manage.merchants.entity.ClientModify;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create by yixian at 2018-04-12 16:43
|
||||||
|
*/
|
||||||
|
public class SourceModify extends ClientModify {
|
||||||
|
private int source;
|
||||||
|
|
||||||
|
public SourceModify(JSONObject account, String clientMoniker, int source) {
|
||||||
|
super(account, clientMoniker);
|
||||||
|
this.source = source;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String business() {
|
||||||
|
return "修改商户source状态为:" + source;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected JSONObject getModifyResult() {
|
||||||
|
JSONObject modify = new JSONObject();
|
||||||
|
modify.put("source", source);
|
||||||
|
return modify;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue