|  | @ -3,8 +3,8 @@
 | 
	
		
			
				|  |  | 	<Sqls>
 | 
	
		
			
				|  |  | 		<Sql name='getArticleList'>
 | 
	
		
			
				|  |  | 			<![CDATA[
 | 
	
		
			
				|  |  | 		select m.*,n.BrowseNumber,n.PointNumber,n.CollectionNumber,n.CommentNumber from Org_Article m 
 | 
	
		
			
				|  |  | LEFT JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where 1=1 @Condition
 | 
	
		
			
				|  |  | 		select m.*,IFNULL(n.BrowseNumber,0) as BrowseNumber,IFNULL(n.PointNumber,0) as PointNumber,IFNULL(n.CollectionNumber,0) as CollectionNumber,IFNULL(n.CommentNumber,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>
 | 
	
	
		
			
				|  | @ -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 (?,?,?,?,?,?,?);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 			]]>
 | 
	
		
			
				|  |  | 
 |