Commit 7fb99ac4 by 吕明尚

活动类增加会员类型

parent 38ecad71
...@@ -44,6 +44,13 @@ public class Activity extends BaseEntity { ...@@ -44,6 +44,13 @@ public class Activity extends BaseEntity {
private BigDecimal discountRatio; private BigDecimal discountRatio;
/** /**
* 会员类型
*/
@Excel(name = "会员类型")
private Long memberType;
/**
* 门店枚举 * 门店枚举
*/ */
@Excel(name = "门店枚举") @Excel(name = "门店枚举")
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<result property="activityName" column="activity_name"/> <result property="activityName" column="activity_name"/>
<result property="activityDescription" column="activity_description"/> <result property="activityDescription" column="activity_description"/>
<result property="discountRatio" column="discount_ratio"/> <result property="discountRatio" column="discount_ratio"/>
<result property="memberType" column="member_type"/>
<result property="storeIds" column="store_ids"/> <result property="storeIds" column="store_ids"/>
<result property="labelId" column="label_id"/> <result property="labelId" column="label_id"/>
<result property="packId" column="pack_id"/> <result property="packId" column="pack_id"/>
...@@ -27,6 +28,7 @@ ...@@ -27,6 +28,7 @@
activity_name, activity_name,
activity_description, activity_description,
discount_ratio, discount_ratio,
member_type,
store_ids, store_ids,
label_id, label_id,
pack_id, pack_id,
...@@ -51,6 +53,7 @@ ...@@ -51,6 +53,7 @@
#{activityDescription} #{activityDescription}
</if> </if>
<if test="discountRatio != null ">and discount_ratio = #{discountRatio}</if> <if test="discountRatio != null ">and discount_ratio = #{discountRatio}</if>
<if test="memberType != null ">and member_type = #{memberType}</if>
<if test="storeIds != null and storeIds != ''">and store_ids = #{storeIds}</if> <if test="storeIds != null and storeIds != ''">and store_ids = #{storeIds}</if>
<if test="labelId != null ">and label_id = #{labelId}</if> <if test="labelId != null ">and label_id = #{labelId}</if>
<if test="packId != null ">and pack_id = #{packId}</if> <if test="packId != null ">and pack_id = #{packId}</if>
...@@ -71,6 +74,7 @@ ...@@ -71,6 +74,7 @@
<if test="activityName != null">activity_name,</if> <if test="activityName != null">activity_name,</if>
<if test="activityDescription != null">activity_description,</if> <if test="activityDescription != null">activity_description,</if>
<if test="discountRatio != null">discount_ratio,</if> <if test="discountRatio != null">discount_ratio,</if>
<if test="memberType != null">member_type,</if>
<if test="storeIds != null">store_ids,</if> <if test="storeIds != null">store_ids,</if>
<if test="labelId != null">label_id,</if> <if test="labelId != null">label_id,</if>
<if test="packId != null">pack_id,</if> <if test="packId != null">pack_id,</if>
...@@ -87,6 +91,7 @@ ...@@ -87,6 +91,7 @@
<if test="activityName != null">#{activityName},</if> <if test="activityName != null">#{activityName},</if>
<if test="activityDescription != null">#{activityDescription},</if> <if test="activityDescription != null">#{activityDescription},</if>
<if test="discountRatio != null">#{discountRatio},</if> <if test="discountRatio != null">#{discountRatio},</if>
<if test="memberType != null">#{memberType},</if>
<if test="storeIds != null">#{storeIds},</if> <if test="storeIds != null">#{storeIds},</if>
<if test="labelId != null">#{labelId},</if> <if test="labelId != null">#{labelId},</if>
<if test="packId != null">#{packId},</if> <if test="packId != null">#{packId},</if>
...@@ -107,6 +112,7 @@ ...@@ -107,6 +112,7 @@
<if test="activityName != null">activity_name = #{activityName},</if> <if test="activityName != null">activity_name = #{activityName},</if>
<if test="activityDescription != null">activity_description = #{activityDescription},</if> <if test="activityDescription != null">activity_description = #{activityDescription},</if>
<if test="discountRatio != null">discount_ratio = #{discountRatio},</if> <if test="discountRatio != null">discount_ratio = #{discountRatio},</if>
<if test="memberType != null">member_type = #{memberType},</if>
<if test="storeIds != null">store_ids = #{storeIds},</if> <if test="storeIds != null">store_ids = #{storeIds},</if>
<if test="labelId != null">label_id = #{labelId},</if> <if test="labelId != null">label_id = #{labelId},</if>
<if test="packId != null">pack_id = #{packId},</if> <if test="packId != null">pack_id = #{packId},</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment