|
@ -17,7 +17,7 @@ LEFT JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where 1=1 @Conditi
|
|
|
</Sql>
|
|
|
<Sql name='getCollectionArticleList'>
|
|
|
<![CDATA[
|
|
|
select aa.* ,n.BrowseNumber,n.PointNumber,n.CollectionNumber,n.CommentNumber from (
|
|
|
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
|
|
|
]]>
|
|
@ -94,7 +94,7 @@ FROM dual where not exists( select ArticleId from User_ArticleStatistics where
|
|
|
<Sql name='insertArticleInitStatistic'>
|
|
|
<![CDATA[
|
|
|
|
|
|
INSERT INTO User_ArticleStatistics (ArticleId, BrowseNumber, PointNumber, CommentNumber, ShareNumber, CollectionNumber) VALUES (?,?,?,?,?,?);
|
|
|
INSERT INTO User_ArticleStatistics (ArticleId, BrowseNumber, PointNumber, CommentNumber, ShareNumber, CollectionNumber,PushNumber) VALUES (?,?,?,?,?,?,?);
|
|
|
|
|
|
]]>
|
|
|
|