| 
					
				 | 
			
			
				@@ -749,7 +749,7 @@ def get_channel_summary(channel,pitcher,page,page_size,order_by,order,state): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    sql = f"""select a.channel channel,state,type location,toString(a.start) start,toString(a.end) end, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    sql = f"""select a.channel channel,state,type location,toString(a.start_d) start,toString(a.end_d) end, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 toDecimal32(total_cost,2),toDecimal32(total_amount,2), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         toDecimal32(profit,2),roi,follow_user,toDecimal32(follow_per_cost,2),order_user, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(follow_user=0,0,order_user/follow_user) order_tran_rate,toDecimal32(if(order_user=0,0,total_cost/order_user),2) order_tran_cost, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -757,8 +757,8 @@ def get_channel_summary(channel,pitcher,page,page_size,order_by,order,state): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 from 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 select channel, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                       min(if(cost>0,dt,null)) start,max(if(cost>0,dt,null) ) end, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        if(end>subtractDays(today(),10),'在投','停投') state,type  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                       min(if(cost>0,dt,null)) start_d,max(if(cost>0,dt,null) ) end_d, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if(end_d>subtractDays(today(),10),'在投','停投') state,type  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        from dw_daily_channel_cost where 1=1 {pitcher_op} {channel_op}  group by channel) a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 left outer join( 
			 |