瀏覽代碼

解决搜索人员报错的问题

dzx 2 年之前
父節點
當前提交
27e5fb6e6f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/room/RoomValueWeekItemMapper.xml

+ 1 - 1
src/main/resources/mapper/room/RoomValueWeekItemMapper.xml

@@ -34,7 +34,7 @@
             and #{dto.endTime} >= t2.end_time
         </if>
         <if test="dto.userName != null and dto.userName != ''">
-            and t3.name like concat('%', #{dto.userId}, '%')
+            and t3.name like concat('%', #{dto.userName}, '%')
         </if>
         <if test="dto.roomType != null and dto.roomType != ''">
             and t1.room_type = #{dto.roomType}