Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
31334187
提交
31334187
authored
12月 10, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
活动管理
上级
67ffe082
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
31 行删除
+15
-31
ActivityEntity.java
...min/src/main/java/com/platform/entity/ActivityEntity.java
+9
-25
ActivityDao.xml
...admin/src/main/resources/com/platform/dao/ActivityDao.xml
+6
-6
没有找到文件。
platform-admin/src/main/java/com/platform/entity/ActivityEntity.java
浏览文件 @
31334187
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
set
Link
(
String
link
)
{
public
void
set
ItemIds
(
String
itemIds
)
{
this
.
link
=
link
;
this
.
itemIds
=
itemIds
;
}
}
/**
/**
* 获取:
特定商品链接
* 获取:
商品ID集合
*/
*/
public
String
get
Link
()
{
public
String
get
ItemIds
()
{
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
;
}
}
/**
/**
* 设置:更新时间
* 设置:更新时间
*/
*/
...
...
platform-admin/src/main/resources/com/platform/dao/ActivityDao.xml
浏览文件 @
31334187
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论