Commit 7f2e6a0e by YG8999

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

parent 54afd809
......@@ -91,6 +91,13 @@ public class SRoom extends BaseEntity
private Integer isDirtyRoom;
/**
* 房间上下架(1-上架,2-下架,3-维护)
*/
@Excel(name = "房间上下架")
private Integer roomStat;
/**
* 套餐ID
*/
@TableField(exist = false)
......
......@@ -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>
......
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