shuzhan hace 2 años
padre
commit
f43bb135f0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      common/src/main/resources/mapper/base/NewsInfo.xml

+ 3 - 0
common/src/main/resources/mapper/base/NewsInfo.xml

@@ -106,6 +106,9 @@
 			<if test="searchParams.category != null">
 				and category_ = #{searchParams.category}
 			</if>
+			<if test="searchParams.status != null">
+				and status_ = #{searchParams.status}
+			</if>
 		</where>
 		<foreach item="sort" collection="sortList"  open="order by" separator=",">
 	        ${sort.name} ${sort.order}