Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
67ffe082
提交
67ffe082
authored
12月 08, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
活动管理
上级
6c7ff65f
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
30 行增加
和
19 行删除
+30
-19
ActivityEntity.java
...min/src/main/java/com/platform/entity/ActivityEntity.java
+16
-0
ActivityServiceImpl.java
...n/java/com/platform/service/impl/ActivityServiceImpl.java
+3
-0
activity.html
...form-admin/src/main/webapp/WEB-INF/page/sys/activity.html
+7
-13
activity.js
platform-admin/src/main/webapp/js/sys/activity.js
+4
-6
没有找到文件。
platform-admin/src/main/java/com/platform/entity/ActivityEntity.java
浏览文件 @
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
;
/**
* 实体
...
...
@@ -61,6 +64,7 @@ public class ActivityEntity implements Serializable {
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
...
...
@@ -79,6 +83,7 @@ public class ActivityEntity implements Serializable {
public
String
getId
()
{
return
id
;
}
/**
* 设置:活动名称
*/
...
...
@@ -92,6 +97,7 @@ public class ActivityEntity implements Serializable {
public
String
getName
()
{
return
name
;
}
/**
* 设置:活动类型 1:满减 2:满折 3:满件打折
*/
...
...
@@ -105,6 +111,7 @@ public class ActivityEntity implements Serializable {
public
Integer
getType
()
{
return
type
;
}
/**
* 设置:使用类型 1:全场 2:分类商品 3:特定商品
*/
...
...
@@ -118,6 +125,7 @@ public class ActivityEntity implements Serializable {
public
Integer
getUseType
()
{
return
useType
;
}
/**
* 设置:商品分类ID
*/
...
...
@@ -131,6 +139,7 @@ public class ActivityEntity implements Serializable {
public
String
getCategoryId
()
{
return
categoryId
;
}
/**
* 设置:活动图片
*/
...
...
@@ -144,6 +153,7 @@ public class ActivityEntity implements Serializable {
public
String
getPicture
()
{
return
picture
;
}
/**
* 设置:活动条件(json)
*/
...
...
@@ -157,6 +167,7 @@ public class ActivityEntity implements Serializable {
public
String
getCondition
()
{
return
condition
;
}
/**
* 设置:特定商品链接
*/
...
...
@@ -170,6 +181,7 @@ public class ActivityEntity implements Serializable {
public
String
getLink
()
{
return
link
;
}
/**
* 设置:活动状态 0:关闭 1:开启
*/
...
...
@@ -183,6 +195,7 @@ public class ActivityEntity implements Serializable {
public
Integer
getStatus
()
{
return
status
;
}
/**
* 设置:活动开始时间
*/
...
...
@@ -196,6 +209,7 @@ public class ActivityEntity implements Serializable {
public
Date
getStartTime
()
{
return
startTime
;
}
/**
* 设置:活动结束时间
*/
...
...
@@ -209,6 +223,7 @@ public class ActivityEntity implements Serializable {
public
Date
getEndTime
()
{
return
endTime
;
}
/**
* 设置:创建时间
*/
...
...
@@ -222,6 +237,7 @@ public class ActivityEntity implements Serializable {
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
* 设置:更新时间
*/
...
...
platform-admin/src/main/java/com/platform/service/impl/ActivityServiceImpl.java
浏览文件 @
67ffe082
...
...
@@ -6,10 +6,13 @@ import com.platform.entity.ActivityEntity;
import
com.platform.entity.TbCfStationItemEntity
;
import
com.platform.service.ActivityService
;
import
com.platform.utils.IdUtil
;
import
net.sf.json.JSONArray
;
import
net.sf.json.JSONObject
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/activity.html
浏览文件 @
67ffe082
...
...
@@ -36,8 +36,8 @@
<Form-item
label=
"活动名称"
prop=
"name"
>
<i-input
v-model=
"activity.name"
placeholder=
"活动名称"
/>
</Form-item>
<Form-item
label=
"活动类型 1:满减 2:满折 3:满
几
件打折"
prop=
"type"
>
<i-input
v-model=
"activity.type"
placeholder=
"活动类型 1:满减 2:满折 3:满
几
件打折"
/>
<Form-item
label=
"活动类型 1:满减 2:满折 3:满件打折"
prop=
"type"
>
<i-input
v-model=
"activity.type"
placeholder=
"活动类型 1:满减 2:满折 3:满件打折"
/>
</Form-item>
<Form-item
label=
"使用类型 1:全场 2:分类商品 3:特定商品"
prop=
"useType"
>
<i-input
v-model=
"activity.useType"
placeholder=
"使用类型 1:全场 2:分类商品 3:特定商品"
/>
...
...
@@ -48,17 +48,11 @@
<Form-item
label=
"活动图片"
prop=
"picture"
>
<i-input
v-model=
"activity.picture"
placeholder=
"活动图片"
/>
</Form-item>
<Form-item
label=
"
满减金额"
prop=
"fullAmount
"
>
<i-input
v-model=
"activity.
fullAmount"
placeholder=
"满减金额
"
/>
<Form-item
label=
"
活动条件(json)"
prop=
"condition
"
>
<i-input
v-model=
"activity.
condition"
placeholder=
"活动条件(json)
"
/>
</Form-item>
<Form-item
label=
"抵扣金额"
prop=
"reducedAmount"
>
<i-input
v-model=
"activity.reducedAmount"
placeholder=
"抵扣金额"
/>
</Form-item>
<Form-item
label=
"折扣率"
prop=
"discountRate"
>
<i-input
v-model=
"activity.discountRate"
placeholder=
"折扣率"
/>
</Form-item>
<Form-item
label=
"商品IDS"
prop=
"itemIds"
>
<i-input
v-model=
"activity.itemIds"
placeholder=
"商品IDS"
/>
<Form-item
label=
"特定商品链接"
prop=
"link"
>
<i-input
v-model=
"activity.link"
placeholder=
"特定商品链接"
/>
</Form-item>
<Form-item
label=
"活动状态 0:关闭 1:开启"
prop=
"status"
>
<i-input
v-model=
"activity.status"
placeholder=
"活动状态 0:关闭 1:开启"
/>
...
...
@@ -86,4 +80,4 @@
<script
src=
"${rc.contextPath}/js/sys/activity.js?_${date.systemTime}"
></script>
</body>
</html>
</html>
\ No newline at end of file
platform-admin/src/main/webapp/js/sys/activity.js
浏览文件 @
67ffe082
...
...
@@ -4,14 +4,12 @@ $(function () {
colModel
:
[
{
label
:
'id'
,
name
:
'id'
,
index
:
'id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'活动名称'
,
name
:
'name'
,
index
:
'name'
,
width
:
80
},
{
label
:
'活动类型 1:满减 2:满折 3:满
几
件打折'
,
name
:
'type'
,
index
:
'type'
,
width
:
80
},
{
label
:
'活动类型 1:满减 2:满折 3:满件打折'
,
name
:
'type'
,
index
:
'type'
,
width
:
80
},
{
label
:
'使用类型 1:全场 2:分类商品 3:特定商品'
,
name
:
'useType'
,
index
:
'use_type'
,
width
:
80
},
{
label
:
'商品分类ID'
,
name
:
'categoryId'
,
index
:
'category_id'
,
width
:
80
},
{
label
:
'活动图片'
,
name
:
'picture'
,
index
:
'picture'
,
width
:
80
},
{
label
:
'满减金额'
,
name
:
'fullAmount'
,
index
:
'full_amount'
,
width
:
80
},
{
label
:
'抵扣金额'
,
name
:
'reducedAmount'
,
index
:
'reduced_amount'
,
width
:
80
},
{
label
:
'折扣率'
,
name
:
'discountRate'
,
index
:
'discount_rate'
,
width
:
80
},
{
label
:
'商品IDS'
,
name
:
'itemIds'
,
index
:
'item_ids'
,
width
:
80
},
{
label
:
'活动条件(json)'
,
name
:
'condition'
,
index
:
'condition'
,
width
:
80
},
{
label
:
'特定商品链接'
,
name
:
'link'
,
index
:
'link'
,
width
:
80
},
{
label
:
'活动状态 0:关闭 1:开启'
,
name
:
'status'
,
index
:
'status'
,
width
:
80
},
{
label
:
'活动开始时间'
,
name
:
'startTime'
,
index
:
'start_time'
,
width
:
80
},
{
label
:
'活动结束时间'
,
name
:
'endTime'
,
index
:
'end_time'
,
width
:
80
},
...
...
@@ -121,4 +119,4 @@ let vm = new Vue({
handleResetForm
(
this
,
name
);
}
}
});
});
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论