Commit f6cda6d8 by 郑永强

修改

parent 692022f0
......@@ -585,15 +585,12 @@ public class AdNewsBizImpl implements AdNewsBiz {
adNewsWechatChoose.setUpdateUser(partyId);
adNewsWechatChooses.add(adNewsWechatChoose);
}
// //校验重复添加
// Integer count = adNewsWechatChooseDao.getCountByAdNewsWechatIdsAndPartyId(adNewsWechatIds, partyId);
// if (count > 0) {
// throw new BookBizException(BookBizException.PARAM_IS_ERROR, "请勿重复添加!");
// }
// 移除编辑之前的选择
adNewsWechatChooseDao.deleteAdNewsWechatChooseByPartyId(partyId);
// 重新建立关系
adNewsWechatChooseDao.batchInsert(adNewsWechatChooses);
if(!ListUtils.isEmpty(adNewsWechatChooses)){
// 重新建立关系
adNewsWechatChooseDao.batchInsert(adNewsWechatChooses);
}
}
@Transactional(rollbackFor = Exception.class)
......
......@@ -149,9 +149,6 @@ public class AdNewsFacadeImpl implements AdNewsFacade {
throw new BookBizException(BookBizException.PARAM_IS_ERROR, "每页条数不能为空且必须大于0!");
}
adNewsListParam.setPartyId(partyId);
// 将2019-08-12时间转换为 2019-08-12 23:59:59
if (adNewsListParam.getEndTime() != null)
adNewsListParam.setEndTime(adNewsListParam.getEndTime().concat(" 23:59:59"));
return new ResponseDto<>(adNewsBiz.getAdNewsList(adNewsListParam));
}
......
......@@ -146,6 +146,7 @@
${item}
</foreach>
</if>
INNER JOIN ad_news_wechat_choose c ON b.id=c.ad_news_wechat_id and c.create_user=#{partyId} and c.is_delete=0
where 1=1
<if test="title!=null">
AND a.title like concat('%', #{title},'%')
......
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