|  | @ -1,66 +1,66 @@
 | 
												
													
														
															|  | <?xml version="1.0" encoding="UTF-8"?>
 |  | <?xml version="1.0" encoding="UTF-8"?>
 | 
												
													
														
															|  | <das-client>
 |  | <das-client>
 | 
												
													
														
															|  | 	<Sqls> 
 |  | 
 | 
												
													
														
															|  | 		 <Sql name='getArticleList'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 	<Sqls>
 | 
												
													
														
															|  | 
 |  | 		<Sql name='getArticleList'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 		select m.*,n.BrowseNumber,n.PointNumber,n.CollectionNumber,n.CommentNumber from Org_Article m 
 |  | 		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
 |  | LEFT JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where 1=1 @Condition
 | 
												
													
														
															|  | 		
 |  | 		
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 			 <Sql name='getArticleListCount'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='getArticleListCount'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 	select count(*) from Org_Article m 
 |  | 	select count(*) from Org_Article m 
 | 
												
													
														
															|  | LEFT JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where 1=1 @Condition
 |  | LEFT JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where 1=1 @Condition
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 				 <Sql name='getCollectionArticleList'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<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 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 
 |  | 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
 |  | User_ArticleStatistics n on aa.ArticleId=n.ArticleId where 1=1 @Condition
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 					 <Sql name='getCollectionArticleListCount'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='getCollectionArticleListCount'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | select count(*) from (
 |  | select count(*) 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 
 |  | 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
 |  | User_ArticleStatistics n on aa.ArticleId=n.ArticleId where 1=1 @Condition
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 			 <Sql name='pointNumberCount'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='pointNumberCount'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | select *  from User_Behavior where  BehaviorAction=1 and 1=1 @Condition
 |  | select *  from User_Behavior where  BehaviorAction=1 and 1=1 @Condition
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 			 <Sql name='collectionNumberCount'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='collectionNumberCount'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | select * from User_ArticleCollection where 1=1 @Condition
 |  | select * from User_ArticleCollection where 1=1 @Condition
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 		 <Sql name='updateArticleStatistic'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='updateArticleStatistic'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 		 update User_ArticleStatistics set @behaviorParam where @ArticleId
 |  | 		 update User_ArticleStatistics set @behaviorParam where @ArticleId
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 		
 |  | 
 | 
												
													
														
															|  | 		 <Sql name='updateCollectionStatistic'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='updateCollectionStatistic'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 		 update User_ArticleStatistics set @behaviorParam= (
 |  | 		 update User_ArticleStatistics set @behaviorParam= (
 | 
												
													
														
															|  | select count(*) from User_ArticleCollection where 1=1 @Condition) where @ArticleId
 |  | select count(*) from User_ArticleCollection where 1=1 @Condition) where @ArticleId
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 			 <Sql name='updateCommentStatistic'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='updateCommentStatistic'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 		 update User_ArticleStatistics  set @behaviorParam= (
 |  | 		 update User_ArticleStatistics  set @behaviorParam= (
 | 
												
													
														
															|  | select count(*) from User_ArticleComment where 1=1 @Condition) where @ArticleId
 |  | select count(*) from User_ArticleComment where 1=1 @Condition) where @ArticleId
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 			 <Sql name='insertArticleStatistic'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='insertArticleStatistic'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 					
 |  | 					
 | 
												
													
														
															|  | 				INSERT INTO User_ArticleStatistics (		
 |  | 				INSERT INTO User_ArticleStatistics (		
 | 
												
													
														
															|  | 			ArticleId
 |  | 			ArticleId
 | 
												
											
												
													
														
															|  | @ -70,14 +70,14 @@ FROM dual   where not exists( select ArticleId from User_ArticleStatistics where
 | 
												
													
														
															|  | 	
 |  | 	
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 		 <Sql name='deleteArticleStatistic'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='deleteArticleStatistic'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 					
 |  | 					
 | 
												
													
														
															|  | 				delete  from User_ArticleStatistics
 |  | 				delete  from User_ArticleStatistics
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 		 <Sql name='queryArticleStatistic'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='queryArticleStatistic'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 				select * from (
 |  | 				select * from (
 | 
												
													
														
															|  | 			select count(case behavioraction when '1' then 'PointNumber' end) as PointNumber,
 |  | 			select count(case behavioraction when '1' then 'PointNumber' end) as PointNumber,
 | 
												
													
														
															|  | 			 count(case behavioraction when '3' then 'ShareNumber' end) as ShareNumber, 
 |  | 			 count(case behavioraction when '3' then 'ShareNumber' end) as ShareNumber, 
 | 
												
											
												
													
														
															|  | @ -89,19 +89,19 @@ FROM dual   where not exists( select ArticleId from User_ArticleStatistics where
 | 
												
													
														
															|  | 			ON  aa.articleid=bb.articleid
 |  | 			ON  aa.articleid=bb.articleid
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 			
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 		 <Sql name='insertArticleInitStatistic'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<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) VALUES (?,?,?,?,?,?);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 			
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 		
 |  | 
 | 
												
													
														
															|  | 			 <Sql name='getDoctorArticleList'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='getDoctorArticleList'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 				select * from (
 |  | 				select * from (
 | 
												
													
														
															|  | 		select m.*,n.BrowseNumber,n.PointNumber,n.CollectionNumber,n.CommentNumber from Org_Article m 
 |  | 		select m.*,n.BrowseNumber,n.PointNumber,n.CollectionNumber,n.CommentNumber from Org_Article m 
 | 
												
											
												
													
														
															|  | @ -113,8 +113,8 @@ LEFT JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where   m.isauthen
 | 
												
													
														
															|  | 		
 |  | 		
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 			 <Sql name='getDoctorArticleListCount'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='getDoctorArticleListCount'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 		select articleid from (
 |  | 		select articleid from (
 | 
												
													
														
															|  | 		select articleid from Org_Article where isauthentication=1  and 1=1  @Condition
 |  | 		select articleid from Org_Article where isauthentication=1  and 1=1  @Condition
 | 
												
													
														
															|  | 		union
 |  | 		union
 | 
												
											
												
													
														
															|  | @ -123,16 +123,16 @@ LEFT JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where   m.isauthen
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 		
 |  | 
 | 
												
													
														
															|  | 			 <Sql name='getDoctorArticalByUserId'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='getDoctorArticalByUserId'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 		select m.*,n.BrowseNumber,n.PointNumber,n.CollectionNumber,n.CommentNumber from Org_Article m 
 |  | 		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
 |  | LEFT JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where   1=1 @Condition
 | 
												
													
														
															|  | 			]]>
 |  | 			]]>
 | 
												
													
														
															|  | 		</Sql>
 |  | 		</Sql>
 | 
												
													
														
															|  | 			 <Sql name='getDoctorArticalByUserIdCount'>
 |  | 
 | 
												
													
														
															|  | 		 <![CDATA[
 |  | 
 | 
												
													
														
															|  | 
 |  | 		<Sql name='getDoctorArticalByUserIdCount'>
 | 
												
													
														
															|  | 
 |  | 			<![CDATA[
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 		select m.*,n.BrowseNumber,n.PointNumber,n.CollectionNumber,n.CommentNumber from Org_Article m 
 |  | 		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 		 
 |  | LEFT JOIN User_ArticleStatistics n on m.ArticleId=n.ArticleId where   1=1 @Condition 		 
 |