Commit 3ba34083 authored by 罗林杰's avatar 罗林杰

修改首页查询

parent a6c06796
...@@ -310,7 +310,23 @@ ...@@ -310,7 +310,23 @@
order by cv.flag DESC, cv.update_date DESC order by cv.flag DESC, cv.update_date DESC
</select> </select>
<select id="noLoginlistTop" resultType="org.rcisoft.business.cmsnews.entity.CmsNews"> <select id="noLoginlistTop" resultType="org.rcisoft.business.cmsnews.entity.CmsNews">
SELECT cn.*, SELECT cn.release_date,
cn.business_id,
cn.title,
LEFT(cn.details, 50) AS details,
cn.plate,
cn.is_fornt_page,
cn.is_recommended,
cn.is_top,
cn.news_type,
cn.tenant,
cn.weight,
cn.create_date,
cn.update_date,
cn.remarks,
cn.picture_id,
cn.read_count,
cn.create_by,
oi.path AS path oi.path AS path
FROM cms_news cn FROM cms_news cn
LEFT JOIN cms_unit_new_video cunv ON cn.business_id = cunv.news_video_id AND cunv.type = 0 LEFT JOIN cms_unit_new_video cunv ON cn.business_id = cunv.news_video_id AND cunv.type = 0
...@@ -325,7 +341,23 @@ ...@@ -325,7 +341,23 @@
ORDER BY cn.is_top DESC, cn.update_date DESC ORDER BY cn.is_top DESC, cn.update_date DESC
</select> </select>
<select id="listTopMerchants" resultType="org.rcisoft.business.cmsnews.entity.CmsNews"> <select id="listTopMerchants" resultType="org.rcisoft.business.cmsnews.entity.CmsNews">
SELECT cn.*, SELECT cn.release_date,
cn.business_id,
cn.title,
LEFT(cn.details, 50) AS details,
cn.plate,
cn.is_fornt_page,
cn.is_recommended,
cn.is_top,
cn.news_type,
cn.tenant,
cn.weight,
cn.create_date,
cn.update_date,
cn.remarks,
cn.picture_id,
cn.read_count,
cn.create_by,
SUM(cn.click_through_rate) AS readNum SUM(cn.click_through_rate) AS readNum
FROM (SELECT cn.*, FROM (SELECT cn.*,
cpc.click_through_rate AS click_through_rate, cpc.click_through_rate AS click_through_rate,
...@@ -376,7 +408,23 @@ ...@@ -376,7 +408,23 @@
GROUP BY cv.business_id GROUP BY cv.business_id
</select> </select>
<select id="listTopAdmin" resultType="org.rcisoft.business.cmsnews.entity.CmsNews"> <select id="listTopAdmin" resultType="org.rcisoft.business.cmsnews.entity.CmsNews">
SELECT cn.*, SELECT cn.release_date,
cn.business_id,
cn.title,
LEFT(cn.details, 50) AS details,
cn.plate,
cn.is_fornt_page,
cn.is_recommended,
cn.is_top,
cn.news_type,
cn.tenant,
cn.weight,
cn.create_date,
cn.update_date,
cn.remarks,
cn.picture_id,
cn.read_count,
cn.create_by,
SUM(cn.click_through_rate) AS readNum SUM(cn.click_through_rate) AS readNum
FROM (SELECT cn.*, FROM (SELECT cn.*,
cpc.click_through_rate AS click_through_rate, cpc.click_through_rate AS click_through_rate,
......
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