Browse Source

bug修复

dzx 7 months ago
parent
commit
01be548318

+ 9 - 0
src/main/resources/mapper/banding/BandingTaskClassStudentMapper.xml

@@ -67,6 +67,15 @@
             INNER JOIN banding_task_class c2 ON c1.banding_task_class_id = c2.id
             WHERE c1.delete_mark = 0 AND c2.delete_mark = 0 AND c2.banding_task_id = #{dto.bandingTaskId}
         )
+        <if test="dto.name != null and dto.name != ''">
+            and t1.name like concat('%', #{dto.name},'%')
+        </if>
+        <if test="dto.gender != null and dto.gender != ''">
+            and t1.gender = #{dto.gender}
+        </if>
+        <if test="dto.credentialNumber != null and dto.credentialNumber != ''">
+            and t1.credential_number like concat('%', #{dto.credentialNumber},'%')
+        </if>
         <if test="dto.order != null">
             <if test="dto.order == 'ascend'">
                 <if test="dto.field != null and dto.field == 'height'">