Commit 3cfac7d1 by 阳浪

投稿列表查询

parent 0bf5d79e
......@@ -91,7 +91,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi
e.printStackTrace();
}
if(vo.getSiteId()==null) {
vo.setSiteId(ContextHolder.get().getSiteId());
}
Page<Publication> page = new Page<Publication>(vo.getPageNo(), vo.getPageSize());
List<Publication> list = null;
if(vo.getTypeId()!=null) {
......@@ -438,6 +440,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi
}
}
}
if(publicationParamVO.getSiteId()==null) {
publicationParamVO.setSiteId(ContextHolder.get().getSiteId());
}
List<Publication> list = publicationMapper.publicationFirstList(publicationParamVO, page);
if (list.size() > 0 && list != null) {
......
......@@ -45,7 +45,7 @@
<select id="publicationFirstList" resultType="com.yizhi.site.application.domain.Publication">
select a.* from publication a where 1=1 and a.site_id=#{siteId} and a.type_one=#{typeId}
select a.* from publication a where 1=1 and a.site_id=#{siteId}
<if test="fileName != null and fileName != ''">
and a.file_name like CONCAT('%', '${fileName}', '%' )
</if>
......
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