浏览代码

解决报错

dzx 1 年之前
父节点
当前提交
d88b061f05
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/mapper/room/RoomBedMapper.xml

+ 2 - 2
src/main/resources/mapper/room/RoomBedMapper.xml

@@ -73,10 +73,10 @@
         AND a2.class_id = t1.id
         )
         <if test="dto.gradeId != null">
-            and t1.grade_id = #{dto.gradeId}
+            and a2.grade_id = #{dto.gradeId}
         </if>
         <if test="dto.classId != null">
-            and t1.class_id = #{dto.classId}
+            and a2.class_id = #{dto.classId}
         </if>
     </select>
     <select id="getDistributeRoomBedInfo" parameterType="com.xjrsoft.module.room.dto.DistributeRoomBedPageDto" resultType="com.xjrsoft.module.room.vo.DistributeRoomBedPageVo">