Commit 5d1d8ea6 authored by 罗林杰's avatar 罗林杰

修改首页查询

parent 3ba34083
...@@ -313,7 +313,6 @@ ...@@ -313,7 +313,6 @@
SELECT cn.release_date, SELECT cn.release_date,
cn.business_id, cn.business_id,
cn.title, cn.title,
LEFT(cn.details, 50) AS details,
cn.plate, cn.plate,
cn.is_fornt_page, cn.is_fornt_page,
cn.is_recommended, cn.is_recommended,
...@@ -344,7 +343,6 @@ ...@@ -344,7 +343,6 @@
SELECT cn.release_date, SELECT cn.release_date,
cn.business_id, cn.business_id,
cn.title, cn.title,
LEFT(cn.details, 50) AS details,
cn.plate, cn.plate,
cn.is_fornt_page, cn.is_fornt_page,
cn.is_recommended, cn.is_recommended,
...@@ -352,12 +350,8 @@ ...@@ -352,12 +350,8 @@
cn.news_type, cn.news_type,
cn.tenant, cn.tenant,
cn.weight, cn.weight,
cn.create_date,
cn.update_date,
cn.remarks,
cn.picture_id, cn.picture_id,
cn.read_count, 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,
...@@ -411,7 +405,6 @@ ...@@ -411,7 +405,6 @@
SELECT cn.release_date, SELECT cn.release_date,
cn.business_id, cn.business_id,
cn.title, cn.title,
LEFT(cn.details, 50) AS details,
cn.plate, cn.plate,
cn.is_fornt_page, cn.is_fornt_page,
cn.is_recommended, cn.is_recommended,
...@@ -419,12 +412,9 @@ ...@@ -419,12 +412,9 @@
cn.news_type, cn.news_type,
cn.tenant, cn.tenant,
cn.weight, cn.weight,
cn.create_date,
cn.update_date,
cn.remarks,
cn.picture_id, cn.picture_id,
cn.read_count, cn.read_count,
cn.create_by, cn.path,
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