Kaynağa Gözat

寝室管理增加寝室id查询

dzx 1 yıl önce
ebeveyn
işleme
a999d4bd26

+ 3 - 0
src/main/java/com/xjrsoft/module/room/dto/AdjustBedPageDto.java

@@ -37,5 +37,8 @@ public class AdjustBedPageDto extends PageInput {
     @ApiModelProperty("性别")
     public String gender;
 
+    @ApiModelProperty("寝室id")
+    public Long roomId;
+
 
 }

+ 3 - 0
src/main/resources/mapper/room/RoomBedMapper.xml

@@ -362,6 +362,9 @@
         <if test="dto.buildId != null">
             and t3.id = #{dto.buildId}
         </if>
+        <if test="dto.roomId != null">
+            and t2.id = #{dto.roomId}
+        </if>
         ORDER BY t2.sort_code,t1.sort_code
     </select>