|
@ -8,6 +8,13 @@
|
|
|
|
|
|
]]>
|
|
|
</Sql>
|
|
|
<!--<Sql name='getArticleList'>
|
|
|
<![CDATA[
|
|
|
select m.*,IFNULL(n.BrowseNumber,0) as BrowseNumber,IFNULL(n.PointNumber,0) as PointNumber,IFNULL(n.CollectionNumber,0) as CollectionNumber,IFNULL(n.PushNumber,0) as CommentNumber, IFNULL(n.PushNumber,0) as PushNumber
|
|
|
from Org_Article m JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where 1=1 @Condition
|
|
|
|
|
|
]]>
|
|
|
</Sql>-->
|
|
|
<Sql name='getArticleListCount'>
|
|
|
<![CDATA[
|
|
|
select count(*) from Org_Article m
|
|
@ -15,10 +22,17 @@ LEFT JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where 1=1 @Conditi
|
|
|
|
|
|
]]>
|
|
|
</Sql>
|
|
|
<Sql name='getCollectionArticleList'>
|
|
|
<!--<Sql name='getCollectionArticleList'>
|
|
|
<![CDATA[
|
|
|
select aa.* ,n.BrowseNumber,n.PointNumber,n.CollectionNumber,n.CommentNumber, IFNULL(n.PushNumber,0) as PushNumber from (
|
|
|
select m.* from Org_Article m INNER JOIN User_ArticleCollection n on m.articleid=n.ArticleId and 1=1 @UserParam) as aa LEFT JOIN
|
|
|
User_ArticleStatistics n on aa.ArticleId=n.ArticleId where 1=1 @Condition
|
|
|
]]>
|
|
|
</Sql>-->
|
|
|
<Sql name='getCollectionArticleList'>
|
|
|
<![CDATA[
|
|
|
select aa.* ,n.BrowseNumber,n.PointNumber,n.CollectionNumber,IFNULL(n.PushNumber,0) as CommentNumber, IFNULL(n.PushNumber,0) as PushNumber from (
|
|
|
select m.* from Org_Article m INNER JOIN User_ArticleCollection n on m.articleid=n.ArticleId and 1=1 @UserParam) as aa LEFT JOIN
|
|
|
User_ArticleStatistics n on aa.ArticleId=n.ArticleId where 1=1 @Condition
|
|
|
]]>
|
|
|
</Sql>
|