Jelajahi Sumber

学生基本信息查询增加年级id

dzx 1 Minggu lalu
induk
melakukan
e098ab1fcf

+ 3 - 0
src/main/java/com/xjrsoft/module/student/dto/BaseStudentUserPageDto.java

@@ -53,4 +53,7 @@ public class BaseStudentUserPageDto extends PageInput {
     @ApiModelProperty("身份证号")
     private String credentialNumber;
 
+    @ApiModelProperty("年级id")
+    private Long gradeId;
+
 }

+ 3 - 1
src/main/resources/mapper/student/BaseStudentMapper.xml

@@ -93,7 +93,9 @@
                 and t4.id = #{dto.queryId}
             </if>
         </if>
-
+        <if test="dto.gradeId == null">
+            and t4.grade_id = #{dto.gradeId}
+        </if>
         <if test="dto.order == null">
             order by t1.id
         </if>