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
ebea9b4a
Commit
ebea9b4a
authored
Nov 30, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
套餐增加是否首次下单可用
parent
bdce2596
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
13 deletions
+22
-13
SPack.java
share-system/src/main/java/share/system/domain/SPack.java
+14
-13
PackMapper.xml
share-system/src/main/resources/mapper/system/PackMapper.xml
+8
-0
No files found.
share-system/src/main/java/share/system/domain/SPack.java
View file @
ebea9b4a
...
@@ -56,21 +56,22 @@ public class SPack extends BaseEntity {
...
@@ -56,21 +56,22 @@ public class SPack extends BaseEntity {
@Excel
(
name
=
"套餐结束时段"
)
@Excel
(
name
=
"套餐结束时段"
)
private
String
packaEndPeriod
;
private
String
packaEndPeriod
;
/**
* 是否首次下单可用
*/
@Excel
(
name
=
"是否首次下单可用:0否,1是"
)
private
Integer
firstOrderAvailable
;
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
"SPack{"
+
.
append
(
"id"
,
getId
())
"id="
+
id
+
.
append
(
"name"
,
getName
())
", name='"
+
name
+
'\''
+
.
append
(
"duration"
,
getDuration
())
", duration='"
+
duration
+
'\''
+
.
append
(
"price"
,
getPrice
())
", price="
+
price
+
.
append
(
"packaStartPeriod"
,
getPackaStartPeriod
())
", packaStartPeriod='"
+
packaStartPeriod
+
'\''
+
.
append
(
"packaEndPeriod"
,
getPackaEndPeriod
())
", packaEndPeriod='"
+
packaEndPeriod
+
'\''
+
.
append
(
"createBy"
,
getCreateBy
())
", firstOrderAvailable="
+
firstOrderAvailable
+
.
append
(
"createTime"
,
getCreateTime
())
'}'
;
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
}
}
}
}
share-system/src/main/resources/mapper/system/PackMapper.xml
View file @
ebea9b4a
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<result
property=
"price"
column=
"price"
/>
<result
property=
"price"
column=
"price"
/>
<result
property=
"packaStartPeriod"
column=
"packa_start_period"
/>
<result
property=
"packaStartPeriod"
column=
"packa_start_period"
/>
<result
property=
"packaEndPeriod"
column=
"packa_end_period"
/>
<result
property=
"packaEndPeriod"
column=
"packa_end_period"
/>
<result
property=
"firstOrderAvailable"
column=
"first_order_available"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
...
@@ -25,6 +26,7 @@
...
@@ -25,6 +26,7 @@
price,
price,
packa_start_period,
packa_start_period,
packa_end_period,
packa_end_period,
first_order_available,
create_by,
create_by,
create_time,
create_time,
update_by,
update_by,
...
@@ -43,6 +45,9 @@
...
@@ -43,6 +45,9 @@
#{packaStartPeriod}
#{packaStartPeriod}
</if>
</if>
<if
test=
"packaEndPeriod != null and packaEndPeriod != ''"
>
and packa_end_period = #{packaEndPeriod}
</if>
<if
test=
"packaEndPeriod != null and packaEndPeriod != ''"
>
and packa_end_period = #{packaEndPeriod}
</if>
<if
test=
"firstOrderAvailable != null and firstOrderAvailable != ''"
>
and first_order_available =
#{firstOrderAvailable}
</if>
</where>
</where>
</select>
</select>
...
@@ -59,6 +64,7 @@
...
@@ -59,6 +64,7 @@
<if
test=
"price != null"
>
price,
</if>
<if
test=
"price != null"
>
price,
</if>
<if
test=
"packaStartPeriod != null"
>
packa_start_period,
</if>
<if
test=
"packaStartPeriod != null"
>
packa_start_period,
</if>
<if
test=
"packaEndPeriod != null"
>
packa_end_period,
</if>
<if
test=
"packaEndPeriod != null"
>
packa_end_period,
</if>
<if
test=
"firstOrderAvailable != null"
>
first_order_available,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
...
@@ -71,6 +77,7 @@
...
@@ -71,6 +77,7 @@
<if
test=
"price != null"
>
#{price},
</if>
<if
test=
"price != null"
>
#{price},
</if>
<if
test=
"packaStartPeriod != null"
>
#{packaStartPeriod},
</if>
<if
test=
"packaStartPeriod != null"
>
#{packaStartPeriod},
</if>
<if
test=
"packaEndPeriod != null"
>
#{packaEndPeriod},
</if>
<if
test=
"packaEndPeriod != null"
>
#{packaEndPeriod},
</if>
<if
test=
"firstOrderAvailable != null"
>
#{firstOrderAvailable},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
...
@@ -87,6 +94,7 @@
...
@@ -87,6 +94,7 @@
<if
test=
"price != null"
>
price = #{price},
</if>
<if
test=
"price != null"
>
price = #{price},
</if>
<if
test=
"packaStartPeriod != null"
>
packa_start_period = #{packaStartPeriod},
</if>
<if
test=
"packaStartPeriod != null"
>
packa_start_period = #{packaStartPeriod},
</if>
<if
test=
"packaEndPeriod != null"
>
packa_end_period = #{packaEndPeriod},
</if>
<if
test=
"packaEndPeriod != null"
>
packa_end_period = #{packaEndPeriod},
</if>
<if
test=
"firstOrderAvailable != null"
>
first_order_available = #{firstOrderAvailable},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</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