修改查寝管理修改页面的bug

This commit is contained in:
MDSMO
2025-08-28 15:10:01 +08:00
parent bbd0d94e48
commit 1ef1bb05ab
2 changed files with 20 additions and 9 deletions

View File

@@ -93,18 +93,30 @@
</foreach>
</delete>
<select id="listDorm" parameterType="DmsSearch" resultType="Map">
select a.*
select
a.id,
a.park_name,
a.building_name,
a.room_no,
CONCAT(a.park_name, a.building_name, a.room_no) as dorm_name
from view_dorm_info as a
<where>
<if test="parkName != null and parkName != ''"> and a.park_name like concat('%',#{parkName},'%')</if>
<if test="buildingName != null and buildingName != ''"> and a.building_name like concat('%',#{buildingName},'%')</if>
<if test="roomNo != null and roomNo != ''"> and a.room_no = #{roomNo}</if>
<if test="dormitoryId != null"> and a.id = #{dormitoryId}</if>
<if test="parkName != null and parkName != ''">
and a.park_name like concat('%',#{parkName},'%')
</if>
<if test="buildingName != null and buildingName != ''">
and a.building_name like concat('%',#{buildingName},'%')
</if>
<if test="roomNo != null and roomNo != ''">
and a.room_no = #{roomNo}
</if>
<if test="dormitoryId != null">
and a.id = #{dormitoryId}
</if>
</where>
order by a.id asc
</select>
</mapper>
</mapper>