Antiloveg пре 8 година
родитељ
комит
f5468fb6ae
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      src/main/java/com/goafanti/common/mapper/NewsMapper.xml

+ 6 - 0
src/main/java/com/goafanti/common/mapper/NewsMapper.xml

@@ -238,6 +238,9 @@
   	<if test="source != null">
   		and source like CONCAT('%',#{source,jdbcType=VARCHAR},'%')
   	</if>
+  	<if test="hot != null">
+  		and hot = #{hot,jdbcType=INTEGER}
+  	</if>
   	order by edit_time desc
   	<if test="page_sql!=null">
 			${page_sql}
@@ -267,5 +270,8 @@
   	<if test="source != null">
   		and source like CONCAT('%',#{source,jdbcType=VARCHAR},'%')
   	</if>
+  	<if test="hot != null">
+  		and hot = #{hot,jdbcType=INTEGER}
+  	</if>
   </select>
 </mapper>