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
93549a45
Commit
93549a45
authored
Jan 25, 2024
by
hayden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
房间新增排序值,倒序
parent
5405ee1d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletions
+14
-1
SRoom.java
share-system/src/main/java/share/system/domain/SRoom.java
+4
-0
SRoomVo.java
...-system/src/main/java/share/system/domain/vo/SRoomVo.java
+4
-0
SRoomMapper.xml
...e-system/src/main/resources/mapper/system/SRoomMapper.xml
+6
-1
No files found.
share-system/src/main/java/share/system/domain/SRoom.java
View file @
93549a45
...
@@ -32,6 +32,10 @@ public class SRoom extends BaseEntity
...
@@ -32,6 +32,10 @@ public class SRoom extends BaseEntity
@Excel
(
name
=
"门店ID"
)
@Excel
(
name
=
"门店ID"
)
private
Long
storeId
;
private
Long
storeId
;
/** 排序值 */
@Excel
(
name
=
"排序值"
)
private
String
sort
;
/** 房间名称 */
/** 房间名称 */
@Excel
(
name
=
"房间名称"
)
@Excel
(
name
=
"房间名称"
)
private
String
name
;
private
String
name
;
...
...
share-system/src/main/java/share/system/domain/vo/SRoomVo.java
View file @
93549a45
...
@@ -34,6 +34,10 @@ public class SRoomVo extends BaseEntity
...
@@ -34,6 +34,10 @@ public class SRoomVo extends BaseEntity
@ApiModelProperty
(
value
=
"门店ID"
)
@ApiModelProperty
(
value
=
"门店ID"
)
private
Long
storeId
;
private
Long
storeId
;
/** 排序值 */
@Excel
(
name
=
"排序值"
)
private
String
sort
;
/** 门店名称 */
/** 门店名称 */
@ApiModelProperty
(
value
=
"门店名称"
)
@ApiModelProperty
(
value
=
"门店名称"
)
private
String
storeName
;
private
String
storeName
;
...
...
share-system/src/main/resources/mapper/system/SRoomMapper.xml
View file @
93549a45
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<resultMap
type=
"SRoom"
id=
"SRoomResult"
>
<resultMap
type=
"SRoom"
id=
"SRoomResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"storeId"
column=
"store_id"
/>
<result
property=
"storeId"
column=
"store_id"
/>
<result
property=
"sort"
column=
"sort"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"roomType"
column=
"room_type"
/>
<result
property=
"roomType"
column=
"room_type"
/>
<result
property=
"images"
column=
"images"
/>
<result
property=
"images"
column=
"images"
/>
...
@@ -27,7 +28,7 @@
...
@@ -27,7 +28,7 @@
</resultMap>
</resultMap>
<sql
id=
"selectSRoomVo"
>
<sql
id=
"selectSRoomVo"
>
select id, store_id, name, room_type, images, facilities, info, status, price, door_lock_code, electric_control_code, password, params1, params2, create_by, create_time, update_by, update_time, remark from s_room
select id, store_id,
sort,
name, room_type, images, facilities, info, status, price, door_lock_code, electric_control_code, password, params1, params2, create_by, create_time, update_by, update_time, remark from s_room
</sql>
</sql>
<select
id=
"selectSRoomList"
parameterType=
"SRoom"
resultMap=
"SRoomResult"
>
<select
id=
"selectSRoomList"
parameterType=
"SRoom"
resultMap=
"SRoomResult"
>
...
@@ -47,6 +48,7 @@
...
@@ -47,6 +48,7 @@
<if
test=
"params1 != null and params1 != ''"
>
and params1 = #{params1}
</if>
<if
test=
"params1 != null and params1 != ''"
>
and params1 = #{params1}
</if>
<if
test=
"params2 != null and params2 != ''"
>
and params2 = #{params2}
</if>
<if
test=
"params2 != null and params2 != ''"
>
and params2 = #{params2}
</if>
</where>
</where>
order by sort desc
</select>
</select>
<select
id=
"selectSRoomById"
parameterType=
"Long"
resultMap=
"SRoomResult"
>
<select
id=
"selectSRoomById"
parameterType=
"Long"
resultMap=
"SRoomResult"
>
...
@@ -57,6 +59,7 @@
...
@@ -57,6 +59,7 @@
<insert
id=
"insertSRoom"
parameterType=
"SRoom"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insertSRoom"
parameterType=
"SRoom"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into s_room
insert into s_room
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"sort != null"
>
sort,
</if>
<if
test=
"storeId != null"
>
store_id,
</if>
<if
test=
"storeId != null"
>
store_id,
</if>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"roomType != null"
>
room_type,
</if>
<if
test=
"roomType != null"
>
room_type,
</if>
...
@@ -77,6 +80,7 @@
...
@@ -77,6 +80,7 @@
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"remark != null"
>
remark,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"sort != null"
>
#{sort},
</if>
<if
test=
"storeId != null"
>
#{storeId},
</if>
<if
test=
"storeId != null"
>
#{storeId},
</if>
<if
test=
"name != null"
>
#{name},
</if>
<if
test=
"name != null"
>
#{name},
</if>
<if
test=
"roomType != null"
>
#{roomType},
</if>
<if
test=
"roomType != null"
>
#{roomType},
</if>
...
@@ -101,6 +105,7 @@
...
@@ -101,6 +105,7 @@
<update
id=
"updateSRoom"
parameterType=
"SRoom"
>
<update
id=
"updateSRoom"
parameterType=
"SRoom"
>
update s_room
update s_room
<trim
prefix=
"SET"
suffixOverrides=
","
>
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"sort != null"
>
sort = #{sort},
</if>
<if
test=
"storeId != null"
>
store_id = #{storeId},
</if>
<if
test=
"storeId != null"
>
store_id = #{storeId},
</if>
<if
test=
"name != null"
>
name = #{name},
</if>
<if
test=
"name != null"
>
name = #{name},
</if>
<if
test=
"roomType != null"
>
room_type = #{roomType},
</if>
<if
test=
"roomType != null"
>
room_type = #{roomType},
</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