Commit f7cd5817 by 郑永强

增加“是否禁用”筛选条件

parent b98ea15f
......@@ -478,6 +478,7 @@ public class AdNewsBizImpl implements AdNewsBiz {
map.put("title", adNewsListParam.getTitle());
map.put("beginTime", adNewsListParam.getBeginTime());
map.put("endTime", adNewsListParam.getEndTime());
map.put("hasBan", adNewsListParam.getHasBan());
map.put("adNewsWechatIds", adNewsListParam.getAdNewsWechatIds());
PageBeanNew<AdNews> pageBeanNew = adNewsDao.listPageNew(pageParam, map, "getAdNewsList");
return pageBeanNew;
......
......@@ -30,6 +30,9 @@ public class AdNewsListParam {
@ApiModelProperty ("公众号id")
private List<Long> adNewsWechatIds;
@ApiModelProperty("已被禁用;0:没禁用; 1:已禁用;")
private Integer hasBan;
@ApiModelProperty("当前页")
private Integer currentPage;
......
......@@ -156,6 +156,12 @@
<if test="endTime!=null">
AND a.news_date<![CDATA[<=]]> #{endTime}
</if>
<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)
</if>
<if test="hasBan==1">
AND EXISTS (SELECT 1 FROM ad_news_ban WHERE ad_news_id=a.id and adviser_id=#{partyId} LIMIT 1)
</if>
</select>
<!--获取编辑选择的素材-->
......
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