Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
7fb99ac4
Commit
7fb99ac4
authored
Jun 25, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动类增加会员类型
parent
38ecad71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
Activity.java
share-system/src/main/java/share/system/domain/Activity.java
+7
-0
ActivityMapper.xml
...ystem/src/main/resources/mapper/system/ActivityMapper.xml
+6
-0
No files found.
share-system/src/main/java/share/system/domain/Activity.java
View file @
7fb99ac4
...
...
@@ -44,6 +44,13 @@ public class Activity extends BaseEntity {
private
BigDecimal
discountRatio
;
/**
* 会员类型
*/
@Excel
(
name
=
"会员类型"
)
private
Long
memberType
;
/**
* 门店枚举
*/
@Excel
(
name
=
"门店枚举"
)
...
...
share-system/src/main/resources/mapper/system/ActivityMapper.xml
View file @
7fb99ac4
...
...
@@ -9,6 +9,7 @@
<result
property=
"activityName"
column=
"activity_name"
/>
<result
property=
"activityDescription"
column=
"activity_description"
/>
<result
property=
"discountRatio"
column=
"discount_ratio"
/>
<result
property=
"memberType"
column=
"member_type"
/>
<result
property=
"storeIds"
column=
"store_ids"
/>
<result
property=
"labelId"
column=
"label_id"
/>
<result
property=
"packId"
column=
"pack_id"
/>
...
...
@@ -27,6 +28,7 @@
activity_name,
activity_description,
discount_ratio,
member_type,
store_ids,
label_id,
pack_id,
...
...
@@ -51,6 +53,7 @@
#{activityDescription}
</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=
"labelId != null "
>
and label_id = #{labelId}
</if>
<if
test=
"packId != null "
>
and pack_id = #{packId}
</if>
...
...
@@ -71,6 +74,7 @@
<if
test=
"activityName != null"
>
activity_name,
</if>
<if
test=
"activityDescription != null"
>
activity_description,
</if>
<if
test=
"discountRatio != null"
>
discount_ratio,
</if>
<if
test=
"memberType != null"
>
member_type,
</if>
<if
test=
"storeIds != null"
>
store_ids,
</if>
<if
test=
"labelId != null"
>
label_id,
</if>
<if
test=
"packId != null"
>
pack_id,
</if>
...
...
@@ -87,6 +91,7 @@
<if
test=
"activityName != null"
>
#{activityName},
</if>
<if
test=
"activityDescription != null"
>
#{activityDescription},
</if>
<if
test=
"discountRatio != null"
>
#{discountRatio},
</if>
<if
test=
"memberType != null"
>
#{memberType},
</if>
<if
test=
"storeIds != null"
>
#{storeIds},
</if>
<if
test=
"labelId != null"
>
#{labelId},
</if>
<if
test=
"packId != null"
>
#{packId},
</if>
...
...
@@ -107,6 +112,7 @@
<if
test=
"activityName != null"
>
activity_name = #{activityName},
</if>
<if
test=
"activityDescription != null"
>
activity_description = #{activityDescription},
</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=
"labelId != null"
>
label_id = #{labelId},
</if>
<if
test=
"packId != null"
>
pack_id = #{packId},
</if>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment