Pārlūkot izejas kodu

解决床位分配班级列表查询报错

dzx 1 gadu atpakaļ
vecāks
revīzija
6f3c13c9ec
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 a2.grade_id = #{dto.gradeId}
+            and t1.grade_id = #{dto.gradeId}
         </if>
         <if test="dto.classId != null">
-            and a2.class_id = #{dto.classId}
+            and t1.id = #{dto.classId}
         </if>
     </select>
     <select id="getDistributeRoomBedInfo" parameterType="com.xjrsoft.module.room.dto.DistributeRoomBedPageDto" resultType="com.xjrsoft.module.room.vo.DistributeRoomBedPageVo">