|
@@ -199,6 +199,7 @@ func GetReportAndproductIndustrylListimg(categoryId, userId, startSize, pageSize
|
|
|
art.category_id,
|
|
|
art.title,
|
|
|
art.publish_date,
|
|
|
+ 1 AS resource ,
|
|
|
( SELECT COUNT( 1 ) FROM cygx_article_history_record AS rec WHERE rec.user_id = ` + strconv.Itoa(userId) + ` AND rec.article_id = art.article_id ) AS readnum
|
|
|
FROM
|
|
|
cygx_article AS art
|
|
@@ -213,6 +214,7 @@ func GetReportAndproductIndustrylListimg(categoryId, userId, startSize, pageSize
|
|
|
0 as category_id,
|
|
|
art.title,
|
|
|
art.publish_time AS publish_date,
|
|
|
+ 2 AS resource ,
|
|
|
( SELECT COUNT( 1 ) FROM cygx_product_interior_history AS rec WHERE rec.user_id = ` + strconv.Itoa(userId) + ` AND rec.product_interior_id = art.product_interior_id ) AS readnum
|
|
|
FROM
|
|
|
cygx_product_interior AS art
|