wangliang 4 年之前
父节点
当前提交
a6e9405437
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

+ 6 - 6
themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

@@ -148,10 +148,10 @@
 			<if test="identity != null and identity !=''">
 				and s.identity like CONCAT('%', #{identity},'%')
 			</if>
-			<if test="maxWarningCount != null and maxWarningCount != ''">
+			<if test="maxWarningCount != null and maxWarningCount != '' or maxWarningCount == 0">
 				and t.warning_count &lt;= #{maxWarningCount}
 			</if>
-			<if test="minWarningCount != null and minWarningCount != ''">
+			<if test="minWarningCount != null and minWarningCount != '' or minWarningCount == 0">
 				and t.warning_count &gt;= #{minWarningCount}
 			</if>
 			<if
@@ -181,7 +181,7 @@
 		,date_format(date_sub(from_unixtime(IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) - t.duration_seconds),INTERVAL 8 HOUR), '%H:%i:%s') as remainTime
         <include refid="invigilatePageMiddle"/>
 		<include refid="invigilatePageFoot"/>
-        <if test="paperDownload != null and paperDownload != ''">
+        <if test="paperDownload != null and paperDownload != '' or paperDownload == 0">
             and t.paper_download = #{paperDownload}
         </if>
 		<if test="status == null or status == ''">
@@ -204,7 +204,7 @@
 		,date_format(date_sub(from_unixtime(IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) - t.duration_seconds),INTERVAL 8 HOUR), '%H:%i:%s') as remainTime
 		<include refid="invigilatePageMiddle" />
 		<include refid="invigilatePageFoot" />
-		<if test="paperDownload != null and paperDownload != ''">
+		<if test="paperDownload != null and paperDownload != '' or paperDownload == 0">
 			and t.paper_download = #{paperDownload}
 		</if>
 		<if test="status == null or status == ''">
@@ -317,10 +317,10 @@
 			<if test="identity != null and identity !=''">
 				and tees.identity like CONCAT('%', #{identity},'%')
 			</if>
-			<if test="maxWarningCount != null and maxWarningCount != ''">
+			<if test="maxWarningCount != null and maxWarningCount != '' or maxWarningCount == 0">
 				and toer.warning_count &lt;= #{maxWarningCount}
 			</if>
-			<if test="minWarningCount != null and minWarningCount != ''">
+			<if test="minWarningCount != null and minWarningCount != '' or minWarningCount == 0">
 				and toer.warning_count &gt;= #{minWarningCount}
 			</if>
 			<if