|  |  | @ -6,11 +6,23 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         select rq AS chargTime,sfxm,sfmc,je,sfmz |  |  |  |         select rq AS chargTime,sfxm,sfmc,je,sfmz | 
			
		
	
		
		
			
				
					
					|  |  |  |         from udi_sbfybb |  |  |  |         from udi_sbfybb | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="sfxm != null and sfxm != ''"> |  |  |  |             <if test="deviceBusinessProject.sfxm != null and deviceBusinessProject.sfxm != ''"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             AND sfxm = #{sfxm} |  |  |  |             AND sfxm = #{deviceBusinessProject.sfxm} | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         </if> |  |  |  |         </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <if test="chargTime != null"> |  |  |  |         <if test="deviceBusinessProject.chargTime != null"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         AND CONVERT(DATE, rq) = CONVERT(DATE, #{chargTime}, 120) |  |  |  |          <![CDATA[ | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         AND CONVERT(DATE, rq) = CONVERT(DATE, #{deviceBusinessProject.chargTime}, 120) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |          ]]> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <if test="deviceBusinessProject.startChargTime != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <![CDATA[ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         AND CONVERT(DATE, rq) >= CONVERT(DATE, #{deviceBusinessProject.startChargTime}, 120) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |          ]]> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <if test="deviceBusinessProject.endChargTime != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <![CDATA[ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         AND CONVERT(DATE, rq) <= CONVERT(DATE, #{deviceBusinessProject.endChargTime}, 120) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |          ]]> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </if> |  |  |  |         </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |         order by CONVERT(DATETIME, rq, 120) desc |  |  |  |         order by CONVERT(DATETIME, rq, 120) desc | 
			
		
	
	
		
		
			
				
					|  |  | 
 |