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

活动管理

上级 6c7ff65f
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;
/** /**
* 实体 * 实体
...@@ -61,6 +64,7 @@ public class ActivityEntity implements Serializable { ...@@ -61,6 +64,7 @@ public class ActivityEntity implements Serializable {
* 创建时间 * 创建时间
*/ */
private Date createTime; private Date createTime;
/** /**
* 更新时间 * 更新时间
*/ */
...@@ -79,6 +83,7 @@ public class ActivityEntity implements Serializable { ...@@ -79,6 +83,7 @@ public class ActivityEntity implements Serializable {
public String getId() { public String getId() {
return id; return id;
} }
/** /**
* 设置:活动名称 * 设置:活动名称
*/ */
...@@ -92,6 +97,7 @@ public class ActivityEntity implements Serializable { ...@@ -92,6 +97,7 @@ public class ActivityEntity implements Serializable {
public String getName() { public String getName() {
return name; return name;
} }
/** /**
* 设置:活动类型 1:满减 2:满折 3:满件打折 * 设置:活动类型 1:满减 2:满折 3:满件打折
*/ */
...@@ -105,6 +111,7 @@ public class ActivityEntity implements Serializable { ...@@ -105,6 +111,7 @@ public class ActivityEntity implements Serializable {
public Integer getType() { public Integer getType() {
return type; return type;
} }
/** /**
* 设置:使用类型 1:全场 2:分类商品 3:特定商品 * 设置:使用类型 1:全场 2:分类商品 3:特定商品
*/ */
...@@ -118,6 +125,7 @@ public class ActivityEntity implements Serializable { ...@@ -118,6 +125,7 @@ public class ActivityEntity implements Serializable {
public Integer getUseType() { public Integer getUseType() {
return useType; return useType;
} }
/** /**
* 设置:商品分类ID * 设置:商品分类ID
*/ */
...@@ -131,6 +139,7 @@ public class ActivityEntity implements Serializable { ...@@ -131,6 +139,7 @@ public class ActivityEntity implements Serializable {
public String getCategoryId() { public String getCategoryId() {
return categoryId; return categoryId;
} }
/** /**
* 设置:活动图片 * 设置:活动图片
*/ */
...@@ -144,6 +153,7 @@ public class ActivityEntity implements Serializable { ...@@ -144,6 +153,7 @@ public class ActivityEntity implements Serializable {
public String getPicture() { public String getPicture() {
return picture; return picture;
} }
/** /**
* 设置:活动条件(json) * 设置:活动条件(json)
*/ */
...@@ -157,6 +167,7 @@ public class ActivityEntity implements Serializable { ...@@ -157,6 +167,7 @@ public class ActivityEntity implements Serializable {
public String getCondition() { public String getCondition() {
return condition; return condition;
} }
/** /**
* 设置:特定商品链接 * 设置:特定商品链接
*/ */
...@@ -170,6 +181,7 @@ public class ActivityEntity implements Serializable { ...@@ -170,6 +181,7 @@ public class ActivityEntity implements Serializable {
public String getLink() { public String getLink() {
return link; return link;
} }
/** /**
* 设置:活动状态 0:关闭 1:开启 * 设置:活动状态 0:关闭 1:开启
*/ */
...@@ -183,6 +195,7 @@ public class ActivityEntity implements Serializable { ...@@ -183,6 +195,7 @@ public class ActivityEntity implements Serializable {
public Integer getStatus() { public Integer getStatus() {
return status; return status;
} }
/** /**
* 设置:活动开始时间 * 设置:活动开始时间
*/ */
...@@ -196,6 +209,7 @@ public class ActivityEntity implements Serializable { ...@@ -196,6 +209,7 @@ public class ActivityEntity implements Serializable {
public Date getStartTime() { public Date getStartTime() {
return startTime; return startTime;
} }
/** /**
* 设置:活动结束时间 * 设置:活动结束时间
*/ */
...@@ -209,6 +223,7 @@ public class ActivityEntity implements Serializable { ...@@ -209,6 +223,7 @@ public class ActivityEntity implements Serializable {
public Date getEndTime() { public Date getEndTime() {
return endTime; return endTime;
} }
/** /**
* 设置:创建时间 * 设置:创建时间
*/ */
...@@ -222,6 +237,7 @@ public class ActivityEntity implements Serializable { ...@@ -222,6 +237,7 @@ public class ActivityEntity implements Serializable {
public Date getCreateTime() { public Date getCreateTime() {
return createTime; return createTime;
} }
/** /**
* 设置:更新时间 * 设置:更新时间
*/ */
......
...@@ -6,10 +6,13 @@ import com.platform.entity.ActivityEntity; ...@@ -6,10 +6,13 @@ import com.platform.entity.ActivityEntity;
import com.platform.entity.TbCfStationItemEntity; import com.platform.entity.TbCfStationItemEntity;
import com.platform.service.ActivityService; import com.platform.service.ActivityService;
import com.platform.utils.IdUtil; 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.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Date; import java.util.Date;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
......
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
<Form-item label="活动名称" prop="name"> <Form-item label="活动名称" prop="name">
<i-input v-model="activity.name" placeholder="活动名称"/> <i-input v-model="activity.name" placeholder="活动名称"/>
</Form-item> </Form-item>
<Form-item label="活动类型 1:满减 2:满折 3:满件打折" prop="type"> <Form-item label="活动类型 1:满减 2:满折 3:满件打折" prop="type">
<i-input v-model="activity.type" placeholder="活动类型 1:满减 2:满折 3:满件打折"/> <i-input v-model="activity.type" placeholder="活动类型 1:满减 2:满折 3:满件打折"/>
</Form-item> </Form-item>
<Form-item label="使用类型 1:全场 2:分类商品 3:特定商品" prop="useType"> <Form-item label="使用类型 1:全场 2:分类商品 3:特定商品" prop="useType">
<i-input v-model="activity.useType" placeholder="使用类型 1:全场 2:分类商品 3:特定商品"/> <i-input v-model="activity.useType" placeholder="使用类型 1:全场 2:分类商品 3:特定商品"/>
...@@ -48,17 +48,11 @@ ...@@ -48,17 +48,11 @@
<Form-item label="活动图片" prop="picture"> <Form-item label="活动图片" prop="picture">
<i-input v-model="activity.picture" placeholder="活动图片"/> <i-input v-model="activity.picture" placeholder="活动图片"/>
</Form-item> </Form-item>
<Form-item label="满减金额" prop="fullAmount"> <Form-item label="活动条件(json)" prop="condition">
<i-input v-model="activity.fullAmount" placeholder="满减金额"/> <i-input v-model="activity.condition" placeholder="活动条件(json)"/>
</Form-item> </Form-item>
<Form-item label="抵扣金额" prop="reducedAmount"> <Form-item label="特定商品链接" prop="link">
<i-input v-model="activity.reducedAmount" placeholder="抵扣金额"/> <i-input v-model="activity.link" 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> </Form-item>
<Form-item label="活动状态 0:关闭 1:开启" prop="status"> <Form-item label="活动状态 0:关闭 1:开启" prop="status">
<i-input v-model="activity.status" placeholder="活动状态 0:关闭 1:开启"/> <i-input v-model="activity.status" placeholder="活动状态 0:关闭 1:开启"/>
...@@ -86,4 +80,4 @@ ...@@ -86,4 +80,4 @@
<script src="${rc.contextPath}/js/sys/activity.js?_${date.systemTime}"></script> <script src="${rc.contextPath}/js/sys/activity.js?_${date.systemTime}"></script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -4,14 +4,12 @@ $(function () { ...@@ -4,14 +4,12 @@ $(function () {
colModel: [ colModel: [
{label: 'id', name: 'id', index: 'id', key: true, hidden: true}, {label: 'id', name: 'id', index: 'id', key: true, hidden: true},
{label: '活动名称', name: 'name', index: 'name', width: 80}, {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: '使用类型 1:全场 2:分类商品 3:特定商品', name: 'useType', index: 'use_type', width: 80},
{label: '商品分类ID', name: 'categoryId', index: 'category_id', width: 80}, {label: '商品分类ID', name: 'categoryId', index: 'category_id', width: 80},
{label: '活动图片', name: 'picture', index: 'picture', width: 80}, {label: '活动图片', name: 'picture', index: 'picture', width: 80},
{label: '满减金额', name: 'fullAmount', index: 'full_amount', width: 80}, {label: '活动条件(json)', name: 'condition', index: 'condition', width: 80},
{label: '抵扣金额', name: 'reducedAmount', index: 'reduced_amount', width: 80}, {label: '特定商品链接', name: 'link', index: 'link', width: 80},
{label: '折扣率', name: 'discountRate', index: 'discount_rate', width: 80},
{label: '商品IDS', name: 'itemIds', index: 'item_ids', width: 80},
{label: '活动状态 0:关闭 1:开启', name: 'status', index: 'status', width: 80}, {label: '活动状态 0:关闭 1:开启', name: 'status', index: 'status', width: 80},
{label: '活动开始时间', name: 'startTime', index: 'start_time', width: 80}, {label: '活动开始时间', name: 'startTime', index: 'start_time', width: 80},
{label: '活动结束时间', name: 'endTime', index: 'end_time', width: 80}, {label: '活动结束时间', name: 'endTime', index: 'end_time', width: 80},
...@@ -121,4 +119,4 @@ let vm = new Vue({ ...@@ -121,4 +119,4 @@ let vm = new Vue({
handleResetForm(this, name); handleResetForm(this, name);
} }
} }
}); });
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论