Kaynağa Gözat

成绩模块bug修复

dzx 1 yıl önce
ebeveyn
işleme
3fcb05a475

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

@@ -50,4 +50,7 @@ public class BaseStudentUserPageDto extends PageInput {
     @ApiModelProperty("树-查询id")
     private String queryId;
 
+    @ApiModelProperty("身份证号")
+    private String credentialNumber;
+
 }

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

@@ -67,6 +67,9 @@
         <if test="dto.name != null and dto.name != ''">
             and t1.name like concat('%', #{dto.name},'%')
         </if>
+        <if test="dto.credentialNumber != null and dto.credentialNumber != ''">
+            and t1.credential_number like concat('%', #{dto.credentialNumber},'%')
+        </if>
         <if test="dto.userName != null and dto.userName != ''">
             and t1.user_name like concat('%', #{dto.userName},'%')
         </if>

+ 1 - 1
src/main/resources/mapper/xycxedu/ExamSubjectScoreMappper.xml

@@ -18,7 +18,7 @@
         <if test="dto.semesterId != null">
             and t4.id = #{dto.semesterId}
         </if>
-        <if test="dto.semesterId != null">
+        <if test="dto.examPlanId != null">
             and t3.id = #{dto.examPlanId}
         </if>
     </select>