소스 검색

学生处分查询调整

dzx 1 년 전
부모
커밋
1fb8412e6c
1개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 7
      src/main/resources/mapper/student/BaseStudentPunishmentInfoMapper.xml

+ 1 - 7
src/main/resources/mapper/student/BaseStudentPunishmentInfoMapper.xml

@@ -88,13 +88,7 @@
             and t1.adjust_type is not null
         </if>
         <if test="dto.studentName != null and dto.studentName != ''">
-            and t1.name like concat('$',#{dto.studentName},'%')
-        </if>
-        <if test="dto.studentName != null and dto.studentName != ''">
-            and t1.name like concat('$',#{dto.studentName},'%')
-        </if>
-        <if test="dto.credentialNumber != null and dto.credential_number != ''">
-            and t3.credential_number = #{dto.credentialNumber}
+            and (t1.name like concat('$',#{dto.studentName},'%') or t1.credential_number like concat('$',#{dto.studentName},'%'))
         </if>
     </select>