فهرست منبع

学生处分查询调整

dzx 1 سال پیش
والد
کامیت
0cfbae9cbe
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      src/main/resources/mapper/student/BaseStudentPunishmentInfoMapper.xml

+ 5 - 2
src/main/resources/mapper/student/BaseStudentPunishmentInfoMapper.xml

@@ -52,7 +52,7 @@
         <if test="dto.endTime != null and dto.endTime != ''">
             and t.end_time = #{dto.endTime}
         </if>
-        <if test="dto.credentialNumber != null and dto.endTime != ''">
+        <if test="dto.credentialNumber != null and dto.credentialNumber != ''">
             and t5.credential_number = #{dto.credentialNumber}
         </if>
         <if test="dto.name != null and dto.name != ''">
@@ -90,7 +90,10 @@
         <if test="dto.studentName != null and dto.studentName != ''">
             and t1.name like concat('$',#{dto.studentName},'%')
         </if>
-        <if test="dto.credentialNumber != null and dto.endTime != ''">
+        <if test="dto.name != null and dto.name != ''">
+            and t1.name like concat('$',#{dto.name},'%')
+        </if>
+        <if test="dto.credentialNumber != null and dto.credential_number != ''">
             and t3.credential_number = #{dto.credentialNumber}
         </if>
     </select>