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

活动管理

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