提交 31334187 authored 作者: 吴德鹏's avatar 吴德鹏

活动管理

上级 67ffe082
package com.platform.entity;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
/**
* 实体
* 表名 activity
*
* @author lipengjun
* @date 2020-12-08 14:58:24
* @date 2020-12-10 11:27:26
*/
public class ActivityEntity implements Serializable {
private static final long serialVersionUID = 1L;
......@@ -45,9 +42,9 @@ public class ActivityEntity implements Serializable {
*/
private String condition;
/**
* 特定商品链接
* 商品ID集合
*/
private String link;
private String itemIds;
/**
* 活动状态 0:关闭 1:开启
*/
......@@ -64,7 +61,6 @@ public class ActivityEntity implements Serializable {
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
......@@ -83,7 +79,6 @@ public class ActivityEntity implements Serializable {
public String getId() {
return id;
}
/**
* 设置:活动名称
*/
......@@ -97,7 +92,6 @@ public class ActivityEntity implements Serializable {
public String getName() {
return name;
}
/**
* 设置:活动类型 1:满减 2:满折 3:满件打折
*/
......@@ -111,7 +105,6 @@ public class ActivityEntity implements Serializable {
public Integer getType() {
return type;
}
/**
* 设置:使用类型 1:全场 2:分类商品 3:特定商品
*/
......@@ -125,7 +118,6 @@ public class ActivityEntity implements Serializable {
public Integer getUseType() {
return useType;
}
/**
* 设置:商品分类ID
*/
......@@ -139,7 +131,6 @@ public class ActivityEntity implements Serializable {
public String getCategoryId() {
return categoryId;
}
/**
* 设置:活动图片
*/
......@@ -153,7 +144,6 @@ public class ActivityEntity implements Serializable {
public String getPicture() {
return picture;
}
/**
* 设置:活动条件(json)
*/
......@@ -167,21 +157,19 @@ public class ActivityEntity implements Serializable {
public String getCondition() {
return condition;
}
/**
* 设置:特定商品链接
* 设置:商品ID集合
*/
public void setLink(String link) {
this.link = link;
public void setItemIds(String itemIds) {
this.itemIds = itemIds;
}
/**
* 获取:特定商品链接
* 获取:商品ID集合
*/
public String getLink() {
return link;
public String getItemIds() {
return itemIds;
}
/**
* 设置:活动状态 0:关闭 1:开启
*/
......@@ -195,7 +183,6 @@ public class ActivityEntity implements Serializable {
public Integer getStatus() {
return status;
}
/**
* 设置:活动开始时间
*/
......@@ -209,7 +196,6 @@ public class ActivityEntity implements Serializable {
public Date getStartTime() {
return startTime;
}
/**
* 设置:活动结束时间
*/
......@@ -223,7 +209,6 @@ public class ActivityEntity implements Serializable {
public Date getEndTime() {
return endTime;
}
/**
* 设置:创建时间
*/
......@@ -237,7 +222,6 @@ public class ActivityEntity implements Serializable {
public Date getCreateTime() {
return createTime;
}
/**
* 设置:更新时间
*/
......
......@@ -11,7 +11,7 @@
<result property="categoryId" column="category_id"/>
<result property="picture" column="picture"/>
<result property="condition" column="condition"/>
<result property="link" column="link"/>
<result property="itemIds" column="item_ids"/>
<result property="status" column="status"/>
<result property="startTime" column="start_time"/>
<result property="endTime" column="end_time"/>
......@@ -28,7 +28,7 @@
`category_id`,
`picture`,
`condition`,
`link`,
`item_ids`,
`status`,
`start_time`,
`end_time`,
......@@ -47,7 +47,7 @@
`category_id`,
`picture`,
`condition`,
`link`,
`item_ids`,
`status`,
`start_time`,
`end_time`,
......@@ -88,7 +88,7 @@
`category_id`,
`picture`,
`condition`,
`link`,
`item_ids`,
`status`,
`start_time`,
`end_time`,
......@@ -102,7 +102,7 @@
#{categoryId},
#{picture},
#{condition},
#{link},
#{itemIds},
#{status},
#{startTime},
#{endTime},
......@@ -119,7 +119,7 @@
<if test="categoryId != null">`category_id` = #{categoryId}, </if>
<if test="picture != null">`picture` = #{picture}, </if>
<if test="condition != null">`condition` = #{condition}, </if>
<if test="link != null">`link` = #{link}, </if>
<if test="itemIds != null">`item_ids` = #{itemIds}, </if>
<if test="status != null">`status` = #{status}, </if>
<if test="startTime != null">`start_time` = #{startTime}, </if>
<if test="endTime != null">`end_time` = #{endTime}, </if>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论