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
7f2e6a0e
Commit
7f2e6a0e
authored
Feb 28, 2024
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理系统房间添加上下架功能
parent
54afd809
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
SRoom.java
share-system/src/main/java/share/system/domain/SRoom.java
+7
-0
SRoomMapper.xml
...e-system/src/main/resources/mapper/system/SRoomMapper.xml
+8
-1
No files found.
share-system/src/main/java/share/system/domain/SRoom.java
View file @
7f2e6a0e
...
...
@@ -91,6 +91,13 @@ public class SRoom extends BaseEntity
private
Integer
isDirtyRoom
;
/**
* 房间上下架(1-上架,2-下架,3-维护)
*/
@Excel
(
name
=
"房间上下架"
)
private
Integer
roomStat
;
/**
* 套餐ID
*/
@TableField
(
exist
=
false
)
...
...
share-system/src/main/resources/mapper/system/SRoomMapper.xml
View file @
7f2e6a0e
...
...
@@ -26,6 +26,7 @@
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"roomStat"
column=
"room_stat"
/>
</resultMap>
<sql
id=
"selectSRoomVo"
>
...
...
@@ -49,7 +50,8 @@
create_time,
update_by,
update_time,
remark
remark,
room_stat
from s_room
</sql>
...
...
@@ -70,6 +72,8 @@
<if
test=
"password != null and password != ''"
>
and password = #{password}
</if>
<if
test=
"params1 != null and params1 != ''"
>
and params1 = #{params1}
</if>
<if
test=
"params2 != null and params2 != ''"
>
and params2 = #{params2}
</if>
<if
test=
"roomStat != null"
>
and room_stat = #{roomStat}
</if>
</where>
order by sort desc
</select>
...
...
@@ -102,6 +106,7 @@
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"roomStat != null"
>
room_stat,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"sort != null"
>
#{sort},
</if>
...
...
@@ -124,6 +129,7 @@
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"roomStat != null"
>
#{roomStat},
</if>
</trim>
</insert>
...
...
@@ -150,6 +156,7 @@
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"roomStat != null"
>
room_stat = #{roomStat},
</if>
</trim>
where id = #{id}
</update>
...
...
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