|
|
@@ -0,0 +1,182 @@
|
|
|
+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 BaseNftt<M extends BaseNftt<M>> extends Model<M> implements IBean {
|
|
|
+ /**
|
|
|
+ * 自增主键
|
|
|
+ */
|
|
|
+ public void setId(java.lang.Integer id) {
|
|
|
+ set("id", id);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 自增主键
|
|
|
+ */
|
|
|
+ public java.lang.Integer getId() {
|
|
|
+ return getInt("id");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 售价(¥)
|
|
|
+
|
|
|
+ */
|
|
|
+ public void setPrice(java.math.BigDecimal price) {
|
|
|
+ set("price", price);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 售价(¥)
|
|
|
+
|
|
|
+ */
|
|
|
+ public java.math.BigDecimal getPrice() {
|
|
|
+ return getBigDecimal("price");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 开启预售时间
|
|
|
+ */
|
|
|
+ public void setPresaleStartTime(java.lang.Long presaleStartTime) {
|
|
|
+ set("presale_start_time", presaleStartTime);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 开启预售时间
|
|
|
+ */
|
|
|
+ public java.lang.Long getPresaleStartTime() {
|
|
|
+ return getLong("presale_start_time");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 预售结束时间
|
|
|
+ */
|
|
|
+ public void setPresaleEndTime(java.lang.Long presaleEndTime) {
|
|
|
+ set("presale_end_time", presaleEndTime);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 预售结束时间
|
|
|
+ */
|
|
|
+ public java.lang.Long getPresaleEndTime() {
|
|
|
+ return getLong("presale_end_time");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 开放购买时间
|
|
|
+ */
|
|
|
+ public void setBuyingStartTime(java.lang.Long buyingStartTime) {
|
|
|
+ set("buying_start_time", buyingStartTime);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 开放购买时间
|
|
|
+ */
|
|
|
+ public java.lang.Long getBuyingStartTime() {
|
|
|
+ return getLong("buying_start_time");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 作者(名字)
|
|
|
+ */
|
|
|
+ public void setAuthor(java.lang.String author) {
|
|
|
+ set("author", author);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 作者(名字)
|
|
|
+ */
|
|
|
+ public java.lang.String getAuthor() {
|
|
|
+ return getStr("author");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 已购入份数,此值应该小于max_quantity
|
|
|
+ */
|
|
|
+ public void setPurchasedQuantity(java.lang.Integer purchasedQuantity) {
|
|
|
+ set("purchased_quantity", purchasedQuantity);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 已购入份数,此值应该小于max_quantity
|
|
|
+ */
|
|
|
+ public java.lang.Integer getPurchasedQuantity() {
|
|
|
+ return getInt("purchased_quantity");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 最大份数
|
|
|
+ */
|
|
|
+ public void setMaxQuantity(java.lang.Integer maxQuantity) {
|
|
|
+ set("max_quantity", maxQuantity);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 最大份数
|
|
|
+ */
|
|
|
+ public java.lang.Integer getMaxQuantity() {
|
|
|
+ return getInt("max_quantity");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 介绍页图片url列表
|
|
|
+ */
|
|
|
+ public void setDetailImageList(java.lang.String detailImageList) {
|
|
|
+ set("detail_image_list", detailImageList);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 介绍页图片url列表
|
|
|
+ */
|
|
|
+ public java.lang.String getDetailImageList() {
|
|
|
+ return getStr("detail_image_list");
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 发布者id
|
|
|
+ */
|
|
|
+ public void setCreaterId(java.lang.Integer createrId) {
|
|
|
+ set("creater_id", createrId);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发布者id
|
|
|
+ */
|
|
|
+ public java.lang.Integer getCreaterId() {
|
|
|
+ return getInt("creater_id");
|
|
|
+ }
|
|
|
+ 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();
|
|
|
+ }
|
|
|
+}
|