浏览代码

修改学生床位查询dto字段注解

dzx 1 年之前
父节点
当前提交
02fa32d0a7

+ 3 - 4
src/main/java/com/xjrsoft/module/room/dto/RoomBedPageDto.java

@@ -22,20 +22,19 @@ public class RoomBedPageDto extends PageInput {
     @ApiModelProperty("楼层")
     public Integer floorNumber;
 
-
     @ApiModelProperty("寝室id")
     public Long roomId;
 
     @ApiModelProperty("入住性别")
     public String gender;
 
-    @ApiModelProperty("寝室id")
+    @ApiModelProperty("年级id")
     public Long gradeId;
 
-    @ApiModelProperty("级id")
+    @ApiModelProperty("级id")
     public Long classId;
 
-    @ApiModelProperty("寝室id")
+    @ApiModelProperty("学生姓名")
     public String studentName;
 
     @ApiModelProperty("学号")

+ 2 - 1
src/main/resources/mapper/textbook/TextbookMapper.xml

@@ -272,7 +272,7 @@
                 left join textbook t2 on t2.id = t1.textbook_id
             where claim_type = 'claim_student'
             <if test="dto.baseSemesterId != null and dto.baseSemesterId > 0">
-                and t.base_semester_id = #{dto.baseSemesterId}
+                amd t.base_semester_id = #{dto.baseSemesterId}
             </if>
             <if test="dto.classId != null and dto.classId > 0">
                 and t.class_id = #{dto.classId}
@@ -326,5 +326,6 @@
                 and t1.issn like concat('%', #{dto.issn}, '%')
             </if>
         </where>
+        order by t2.name desc
     </select>
 </mapper>