package com.cowr.model.base; import com.cowr.common.base.BaseModel; import com.jfinal.plugin.activerecord.IBean; import com.alibaba.fastjson.annotation.JSONField; /** * Generated by COWR Sun May 17 21:43:18 CST 2020 * TableName: prepay_customer * Remarks: 客户相关 - 预付费客户余额信息,每个客户在每个超市有单独的余额 * PrimaryKey: id */ @SuppressWarnings("serial") public abstract class BasePrepayCustomer> extends BaseModel implements IBean { public static final String tablename = "prepay_customer"; @JSONField(serialize=false) public String getTablename(){ return tablename; } /** * name: id * type: INT(10) * isNullable: NO * isPrimaryKey: YES * defaultValue: * @param id */ @JSONField(name="id") public void setId(Integer id) { set("id", id); } /** * @return id */ @JSONField(name="id") public Integer getId() { return getInt("id"); } /** * name: customer_id * type: INT(10) * isNullable: NO * isPrimaryKey: NO * defaultValue: * @param customerId 客户表 customer 的 id */ @JSONField(name="customer_id") public void setCustomerId(Integer customerId) { set("customer_id", customerId); } /** * @return customer_id 客户表 customer 的 id */ @JSONField(name="customer_id") public Integer getCustomerId() { return getInt("customer_id"); } /** * name: supermarket_id * type: INT(10) * isNullable: NO * isPrimaryKey: NO * defaultValue: * @param supermarketId 超市id */ @JSONField(name="supermarket_id") public void setSupermarketId(Integer supermarketId) { set("supermarket_id", supermarketId); } /** * @return supermarket_id 超市id */ @JSONField(name="supermarket_id") public Integer getSupermarketId() { return getInt("supermarket_id"); } /** * name: surplus * type: DECIMAL(12,2) * isNullable: NO * isPrimaryKey: NO * defaultValue: 0.00 * @param surplus 账户余额 */ @JSONField(name="surplus") public void setSurplus(java.math.BigDecimal surplus) { set("surplus", surplus); } /** * @return surplus 账户余额 */ @JSONField(name="surplus") public java.math.BigDecimal getSurplus() { return get("surplus"); } /** * name: recharge_time * type: DATETIME(19) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param rechargeTime 最后充值时间 */ @JSONField(name="recharge_time") public void setRechargeTime(java.util.Date rechargeTime) { set("recharge_time", rechargeTime); } /** * @return recharge_time 最后充值时间 */ @JSONField(name="recharge_time") public java.util.Date getRechargeTime() { return get("recharge_time"); } /** * name: spend_time * type: DATETIME(19) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param spendTime 最后消费时间 */ @JSONField(name="spend_time") public void setSpendTime(java.util.Date spendTime) { set("spend_time", spendTime); } /** * @return spend_time 最后消费时间 */ @JSONField(name="spend_time") public java.util.Date getSpendTime() { return get("spend_time"); } /** * name: first_recharge_time * type: DATETIME(19) * isNullable: YES * isPrimaryKey: NO * defaultValue: * @param firstRechargeTime 第一次充值时间 */ @JSONField(name="first_recharge_time") public void setFirstRechargeTime(java.util.Date firstRechargeTime) { set("first_recharge_time", firstRechargeTime); } /** * @return first_recharge_time 第一次充值时间 */ @JSONField(name="first_recharge_time") public java.util.Date getFirstRechargeTime() { return get("first_recharge_time"); } /** * name: threshold * type: DECIMAL(12,2) * isNullable: YES * isPrimaryKey: NO * defaultValue: 3000.00 * @param threshold 余额预警阈值 */ @JSONField(name="threshold") public void setThreshold(java.math.BigDecimal threshold) { set("threshold", threshold); } /** * @return threshold 余额预警阈值 */ @JSONField(name="threshold") public java.math.BigDecimal getThreshold() { return get("threshold"); } }