Просмотр исходного кода

科技思想列表显示修复

Michael лет назад: 8
Родитель
Сommit
ad310ef61c
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/main/java/com/goafanti/common/mapper/NewsMapperExt.xml

+ 3 - 0
src/main/java/com/goafanti/common/mapper/NewsMapperExt.xml

@@ -108,6 +108,9 @@
   		count(1)
   		count(1)
   	from news
   	from news
   	where 1 =1
   	where 1 =1
+  	<if test="auditStatus != null">
+  		and audit_status = #{auditStatus,jdbcType=INTEGER}
+  	</if>
   	<if test="type != null">
   	<if test="type != null">
   		and type = #{type,jdbcType=INTEGER}
   		and type = #{type,jdbcType=INTEGER}
   	</if>
   	</if>