package org.xmx0632.deliciousfruit.erp.bo;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
* 扣积分
*
*/
public class ErpChangePoint {
private String ERPID; // 用户ID
private String intPoint; // 抵扣的积分
private ErpChangePoint rollbackObj;
public ErpChangePoint() {
}
public ErpChangePoint(String customerId, String intPoint) {
this.ERPID = customerId;
this.intPoint = intPoint;
}
public String getIntPoint() {
return intPoint;
}
public void setIntPoint(String intPoint) {
this.intPoint = intPoint;
}
@JSONField(name = "ERPID")
public String getERPID() {
return ERPID;
}
public void setERPID(String eRPID) {
ERPID = eRPID;
}
@Override
public String toString() {
return "ErpChangePoint [intPoint=" + intPoint + ", ERPID=" + ERPID
+ "]";
}
@JsonIgnore
public ErpChangePoint getRollback() {
if (rollbackObj == null) {
rollbackObj = new ErpChangePoint(ERPID, "-" + intPoint);
return rollbackObj;
}
return rollbackObj;
}
}