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

修改bug

parent d4b85c63
......@@ -50,7 +50,7 @@ public interface CmsNewsRepository extends CyBaseMapper<CmsNews> {
IPage<CmsVideo> listTopVideoAdmin(CyPageInfo<CmsNews> paginationUtility, @Param("entity") CmsVideo cmsVideo);
IPage<CmsNews> listByClassificationAdmin(CyPageInfo<CmsNews> paginationUtility, CmsNews cmsNews);
IPage<CmsNews> listByClassificationAdmin(CyPageInfo<CmsNews> paginationUtility, @Param("entity") CmsNews cmsNews);
IPage<CmsNews> listByClassificationMerchants(CyPageInfo<CmsNews> paginationUtility, @Param("entity") CmsNews cmsNews);
}
......
......@@ -30,7 +30,7 @@ public interface CmsVideoRepository extends CyBaseMapper<CmsVideo> {
IPage<CmsVideo> businessAdminsPaginatedQuery(CyPageInfo<CmsVideo> paginationUtility, @Param("entity") CmsVideo cmsVideo);
IPage<CmsVideo> listByClassificationAdmin(CyPageInfo<CmsVideo> paginationUtility, CmsVideo cmsVideo);
IPage<CmsVideo> listByClassificationAdmin(CyPageInfo<CmsVideo> paginationUtility, @Param("entity") CmsVideo cmsVideo);
IPage<CmsVideo> listByClassificationMerchants(CyPageInfo<CmsVideo> paginationUtility, @Param("entity") CmsVideo cmsVideo);
}
......
......@@ -444,6 +444,9 @@
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
GROUP BY cn.business_id, cpc.business_id
......
......@@ -205,6 +205,10 @@
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}
AND suu.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