Commit d4b85c63 authored by 刘帅阳's avatar 刘帅阳

修改bug

parent 77c7bfbb
......@@ -46,9 +46,9 @@ public interface CmsNewsRepository extends CyBaseMapper<CmsNews> {
IPage<CmsVideo> listByTopVideoHome(CyPageInfo<CmsNews> paginationUtility, @Param("entity") CmsVideo cmsVideo);
IPage<CmsNews> listTopAdmin(CyPageInfo<CmsNews> paginationUtility, CmsNews cmsNews);
IPage<CmsNews> listTopAdmin(CyPageInfo<CmsNews> paginationUtility, @Param("entity") CmsNews cmsNews);
IPage<CmsVideo> listTopVideoAdmin(CyPageInfo<CmsNews> paginationUtility, CmsVideo cmsVideo);
IPage<CmsVideo> listTopVideoAdmin(CyPageInfo<CmsNews> paginationUtility, @Param("entity") CmsVideo cmsVideo);
IPage<CmsNews> listByClassificationAdmin(CyPageInfo<CmsNews> paginationUtility, CmsNews cmsNews);
......
......@@ -332,6 +332,7 @@ public class CmsNewsServiceImpl extends ServiceImpl<CmsNewsRepository, CmsNews>
}
return cmsNewsIPage;
}
//登陆后会从 首页/分类我的中进入 1是首页 2是分类和我的
if ("1".equals(cmsNews.getSource())) {
//超级管理员
......@@ -346,7 +347,6 @@ public class CmsNewsServiceImpl extends ServiceImpl<CmsNewsRepository, CmsNews>
}
return cmsNewsIPage;
}
//当前商家下的文章以及设置为推荐文章
IPage<CmsNews> cmsNewsIPage = baseMapper.listTopMerchants(paginationUtility, cmsNews);
List<CmsNews> records = cmsNewsIPage.getRecords();
......@@ -487,7 +487,6 @@ public class CmsNewsServiceImpl extends ServiceImpl<CmsNewsRepository, CmsNews>
return cmsVideoIPage;
}
//超级管理员
//超级管理员
if (CyUserUtil.getAuthenRoleIds().equals(cyInitComp.admin[0])) {
//超级管理员
IPage<CmsVideo> cmsVideoIPage = baseMapper.listTopVideoAdmin(paginationUtility, cmsVideo);
......
......@@ -391,10 +391,12 @@
ON cpc.news_video_id = cn.business_id AND cpc.del_flag = 0 AND cpc.type = 0
AND cpc.user_id = su.business_id
WHERE 1 = 1
<if test="entity.unitId != null and entity.unitId != ''">
AND cunv.unit_id = #{entity.unitId}
</if>
AND cn.del_flag = 0
AND cn.flag = 1
# AND cn.is_recommended = 1
# AND cn.is_recommended = 1
GROUP BY cn.business_id, cpc.business_id
ORDER BY cn.is_top
DESC, cn.update_date DESC) cn
......@@ -418,7 +420,9 @@
LEFT JOIN oss_info oi ON cv.video_url_id = oi.business_id
LEFT JOIN oss_info oi1 ON cv.default_url = oi1.business_id
WHERE 1 = 1
<if test="entity.unitId != null and entity.unitId != ''">
AND cunv.unit_id = #{entity.unitId}
</if>
AND cv.del_flag = 0
GROUP BY cv.business_id, cpc.business_id
order by cv.flag DESC, cv.update_date DESC) cv
......
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