|  | @@ -27,10 +27,11 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="getGzhTotalDatastatCount" resultType="java.lang.Integer">
 | 
	
		
			
				|  |  |          select count(1)
 | 
	
		
			
				|  |  | +        from (select cpgd.date_str
 | 
	
		
			
				|  |  |          from content_platform_gzh_datastat cpgd
 | 
	
		
			
				|  |  | -                 join content_platform_gzh_account cpgza on cpgd.account_id = cpgza.id
 | 
	
		
			
				|  |  | +         join content_platform_gzh_account cpgza on cpgd.account_id = cpgza.id
 | 
	
		
			
				|  |  |          where cpgza.create_account_id = #{createAccountId}
 | 
	
		
			
				|  |  | -        group by cpgd.date_str
 | 
	
		
			
				|  |  | +        group by cpgd.date_str) t
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="getGzhTotalDatastatList"
 | 
	
	
		
			
				|  | @@ -40,7 +41,7 @@
 | 
	
		
			
				|  |  |                 sum(first_level_count)   as first_level_count,
 | 
	
		
			
				|  |  |                 avg(score)               as score
 | 
	
		
			
				|  |  |          from content_platform_gzh_datastat cpgd
 | 
	
		
			
				|  |  | -                 join content_platform_gzh_account cpgza on cpgd.account_id = cpgza.id
 | 
	
		
			
				|  |  | +         join content_platform_gzh_account cpgza on cpgd.account_id = cpgza.id
 | 
	
		
			
				|  |  |          where cpgza.create_account_id = #{createAccountId}
 | 
	
		
			
				|  |  |          group by cpgd.date_str
 | 
	
		
			
				|  |  |          order by cpgd.date_str desc
 | 
	
	
		
			
				|  | @@ -66,17 +67,18 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="getQwTotalDatastatCount" resultType="java.lang.Integer">
 | 
	
		
			
				|  |  |          select count(1)
 | 
	
		
			
				|  |  | +        from (select cpqd.date_str
 | 
	
		
			
				|  |  |          from content_platform_qw_datastat cpqd
 | 
	
		
			
				|  |  | -                 join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  | +         join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  |          where cpqp.create_account_id = #{createAccountId}
 | 
	
		
			
				|  |  | -        group by cpqd.date_str
 | 
	
		
			
				|  |  | +        group by cpqd.date_str) t
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="getQwTotalDatastatList"
 | 
	
		
			
				|  |  |              resultType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformQwDataStat">
 | 
	
		
			
				|  |  |          select cpqd.date_str, sum(cpqd.first_level_count) as first_level_count, avg(cpqd.score) as score
 | 
	
		
			
				|  |  |          from content_platform_qw_datastat cpqd
 | 
	
		
			
				|  |  | -                 join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  | +         join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  |          where cpqp.create_account_id = #{createAccountId}
 | 
	
		
			
				|  |  |          group by cpqd.date_str
 | 
	
		
			
				|  |  |          order by cpqd.date_str desc
 | 
	
	
		
			
				|  | @@ -85,18 +87,19 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="getQwSceneDatastatCount" resultType="java.lang.Integer">
 | 
	
		
			
				|  |  |          select count(1)
 | 
	
		
			
				|  |  | +        from (select cpqd.date_str
 | 
	
		
			
				|  |  |          from content_platform_qw_datastat cpqd
 | 
	
		
			
				|  |  | -                 join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  | +         join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  |          where cpqp.create_account_id = #{createAccountId}
 | 
	
		
			
				|  |  |            and cpqp.scene = #{scene}
 | 
	
		
			
				|  |  | -        group by cpqd.date_str
 | 
	
		
			
				|  |  | +        group by cpqd.date_str) t
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="getQwSceneDatastatList"
 | 
	
		
			
				|  |  |              resultType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformQwDataStat">
 | 
	
		
			
				|  |  |          select cpqd.date_str, sum(cpqd.first_level_count) as first_level_count, avg(cpqd.score) as score
 | 
	
		
			
				|  |  |          from content_platform_qw_datastat cpqd
 | 
	
		
			
				|  |  | -                 join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  | +         join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  |          where cpqp.create_account_id = #{createAccountId}
 | 
	
		
			
				|  |  |            and cpqp.scene = #{scene}
 | 
	
		
			
				|  |  |          group by cpqd.date_str
 | 
	
	
		
			
				|  | @@ -106,18 +109,19 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="getQwReplyDatastatCount" resultType="java.lang.Integer">
 | 
	
		
			
				|  |  |          select count(1)
 | 
	
		
			
				|  |  | +        from (select cpqd.date_str
 | 
	
		
			
				|  |  |          from content_platform_qw_datastat cpqd
 | 
	
		
			
				|  |  | -                 join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  | +         join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  |          where cpqp.create_account_id = #{createAccountId}
 | 
	
		
			
				|  |  |            and cpqp.type = 0
 | 
	
		
			
				|  |  | -        group by cpqd.date_str
 | 
	
		
			
				|  |  | +        group by cpqd.date_str) t
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="getReplyDatastatList"
 | 
	
		
			
				|  |  |              resultType="com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformQwDataStat">
 | 
	
		
			
				|  |  |          select cpqd.date_str, sum(cpqd.first_level_count) as first_level_count, avg(cpqd.score) as score
 | 
	
		
			
				|  |  |          from content_platform_qw_datastat cpqd
 | 
	
		
			
				|  |  | -                 join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  | +         join content_platform_qw_plan cpqp on cpqp.root_source_id = cpqd.root_source_id
 | 
	
		
			
				|  |  |          where cpqp.create_account_id = #{createAccountId}
 | 
	
		
			
				|  |  |            and cpqp.type = 0
 | 
	
		
			
				|  |  |          group by cpqd.date_str
 |