Bläddra i källkod

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

dzx 1 år sedan
förälder
incheckning
6f3c13c9ec
1 ändrade filer med 2 tillägg och 2 borttagningar
  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">