package common.model.base;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;

/**
 * Generated by JFinal, do not modify this file.
 */
@SuppressWarnings("serial")
public abstract class BaseWithdraw<M extends BaseWithdraw<M>> extends Model<M> implements IBean {
	/**
	 * 提现主键，订单号
	 */
	public void setWithdrawSn(java.lang.String withdrawSn) {
		set("withdraw_sn", withdrawSn);
	}
	
	/**
	 * 提现主键，订单号
	 */
	public java.lang.String getWithdrawSn() {
		return getStr("withdraw_sn");
	}
	/**
	 * 提现单位，1=1火花/分
	 */
	public void setAmount(java.lang.Float amount) {
		set("amount", amount);
	}
	
	/**
	 * 提现单位，1=1火花/分
	 */
	public java.lang.Float getAmount() {
		return getFloat("amount");
	}
	/**
	 * 10待审批 20审批通过等待放款 30提现完成 40提现被拒绝
	 */
	public void setStatus(java.lang.Integer status) {
		set("status", status);
	}
	
	/**
	 * 10待审批 20审批通过等待放款 30提现完成 40提现被拒绝
	 */
	public java.lang.Integer getStatus() {
		return getInt("status");
	}
	/**
	 * 提现发起者
	 */
	public void setUserId(java.lang.Long userId) {
		set("user_id", userId);
	}
	
	/**
	 * 提现发起者
	 */
	public java.lang.Long getUserId() {
		return getLong("user_id");
	}
	/**
	 * 说明
	 */
	public void setReason(java.lang.String reason) {
		set("reason", reason);
	}
	
	/**
	 * 说明
	 */
	public java.lang.String getReason() {
		return getStr("reason");
	}
	/**
	 * 审批人
	 */
	public void setApproverId(java.lang.Long approverId) {
		set("approver_id", approverId);
	}
	
	/**
	 * 审批人
	 */
	public java.lang.Long getApproverId() {
		return getLong("approver_id");
	}
	/**
	 * 慧用工原文
	 */
	public void setHygOrigin(java.lang.String hygOrigin) {
		set("hyg_origin", hygOrigin);
	}
	
	/**
	 * 慧用工原文
	 */
	public java.lang.String getHygOrigin() {
		return getStr("hyg_origin");
	}
	public void setCreateTime(java.lang.Long createTime) {
		set("create_time", createTime);
	}
	
	public java.lang.Long getCreateTime() {
		return getLong("create_time");
	}
	public void setUpdateTime(java.lang.Long updateTime) {
		set("update_time", updateTime);
	}
	
	public java.lang.Long getUpdateTime() {
		return getLong("update_time");
	}
	public void setIsDeleted(java.lang.Integer isDeleted) {
		set("is_deleted", isDeleted);
	}
	
	public java.lang.Integer getIsDeleted() {
		return getInt("is_deleted");
	}
	
	public boolean save() {
		set("create_time", System.currentTimeMillis());
		
		return super.save();
	}
	
	public boolean update() {
		set("update_time", System.currentTimeMillis());
		
		return super.update();
	}

	public boolean delete() {
		set("is_deleted", 1);

		return super.update();
	}
}