Commit 7f2e6a0e by YG8999

管理系统房间添加上下架功能

parent 54afd809
...@@ -91,6 +91,13 @@ public class SRoom extends BaseEntity ...@@ -91,6 +91,13 @@ public class SRoom extends BaseEntity
private Integer isDirtyRoom; private Integer isDirtyRoom;
/** /**
* 房间上下架(1-上架,2-下架,3-维护)
*/
@Excel(name = "房间上下架")
private Integer roomStat;
/**
* 套餐ID * 套餐ID
*/ */
@TableField(exist = false) @TableField(exist = false)
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<result property="updateBy" column="update_by" /> <result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="roomStat" column="room_stat" />
</resultMap> </resultMap>
<sql id="selectSRoomVo"> <sql id="selectSRoomVo">
...@@ -49,7 +50,8 @@ ...@@ -49,7 +50,8 @@
create_time, create_time,
update_by, update_by,
update_time, update_time,
remark remark,
room_stat
from s_room from s_room
</sql> </sql>
...@@ -70,6 +72,8 @@ ...@@ -70,6 +72,8 @@
<if test="password != null and password != ''"> and password = #{password}</if> <if test="password != null and password != ''"> and password = #{password}</if>
<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>
<if test="roomStat != null">and room_stat = #{roomStat}</if>
</where> </where>
order by sort desc order by sort desc
</select> </select>
...@@ -102,6 +106,7 @@ ...@@ -102,6 +106,7 @@
<if test="updateBy != null">update_by,</if> <if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
<if test="roomStat != null">room_stat,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="sort != null">#{sort},</if> <if test="sort != null">#{sort},</if>
...@@ -124,6 +129,7 @@ ...@@ -124,6 +129,7 @@
<if test="updateBy != null">#{updateBy},</if> <if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
<if test="roomStat != null">#{roomStat},</if>
</trim> </trim>
</insert> </insert>
...@@ -150,6 +156,7 @@ ...@@ -150,6 +156,7 @@
<if test="updateBy != null">update_by = #{updateBy},</if> <if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark},</if>
<if test="roomStat != null">room_stat = #{roomStat},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
......
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