Commit 00701663 by 郑永强

修正筛选条件

parent e2fcb182
...@@ -228,10 +228,10 @@ ...@@ -228,10 +228,10 @@
AND a.title like concat('%', #{title},'%') AND a.title like concat('%', #{title},'%')
</if> </if>
<if test="beginTime!=null"> <if test="beginTime!=null">
AND a.news_date <![CDATA[>=]]> #{beginTime} AND a.create_time <![CDATA[>=]]> #{beginTime}
</if> </if>
<if test="endTime!=null"> <if test="endTime!=null">
AND a.news_date<![CDATA[<=]]> #{endTime} AND a.create_time<![CDATA[<=]]> #{endTime}
</if> </if>
<if test="hasBan==0"> <if test="hasBan==0">
AND NOT EXISTS (SELECT 1 FROM ad_news_ban WHERE ad_news_id=a.id and adviser_id=#{partyId} LIMIT 1) AND NOT EXISTS (SELECT 1 FROM ad_news_ban WHERE ad_news_id=a.id and adviser_id=#{partyId} LIMIT 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment