|  |  | @ -1011,12 +1011,15 @@ | 
			
		
	
		
			
				
					|  |  |  |         FROM staff_patrol_record | 
			
		
	
		
			
				
					|  |  |  |         WHERE | 
			
		
	
		
			
				
					|  |  |  |             1=1 | 
			
		
	
		
			
				
					|  |  |  |         <if test="patrolId != null and patrolId != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND  ID = #{patrolId} | 
			
		
	
		
			
				
					|  |  |  |         </if> | 
			
		
	
		
			
				
					|  |  |  |             <if test="patrolId != null and patrolId != ''"> | 
			
		
	
		
			
				
					|  |  |  |                 AND  ID = #{patrolId} | 
			
		
	
		
			
				
					|  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |             and CUSTOMER_ID = #{customerId} | 
			
		
	
		
			
				
					|  |  |  |             AND DEL_FLAG = '0' | 
			
		
	
		
			
				
					|  |  |  |             LIMIT  #{offset},#{pageSize} | 
			
		
	
		
			
				
					|  |  |  |             <if test="isPage != null and isPage"> | 
			
		
	
		
			
				
					|  |  |  |                 LIMIT #{offset},#{pageSize} | 
			
		
	
		
			
				
					|  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |             order by created_time | 
			
		
	
		
			
				
					|  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |     <select id="getPatrolDetailList" resultType="com.epmet.dto.user.result.MidPatrolDetailResult"> | 
			
		
	
		
			
				
					|  |  |  |         select | 
			
		
	
	
		
			
				
					|  |  | @ -1024,12 +1027,17 @@ | 
			
		
	
		
			
				
					|  |  |  |         from staff_patrol_detail | 
			
		
	
		
			
				
					|  |  |  |         WHERE | 
			
		
	
		
			
				
					|  |  |  |             1=1 | 
			
		
	
		
			
				
					|  |  |  |         <if test="patrolId != null and patrolId != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND  staff_patrol_rec_id = #{patrolId} | 
			
		
	
		
			
				
					|  |  |  |         </if> | 
			
		
	
		
			
				
					|  |  |  |             <if test="patrolId != null and patrolId != ''"> | 
			
		
	
		
			
				
					|  |  |  |                 AND  staff_patrol_rec_id = #{patrolId} | 
			
		
	
		
			
				
					|  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |             and CUSTOMER_ID = #{customerId} | 
			
		
	
		
			
				
					|  |  |  |             AND DEL_FLAG = '0' | 
			
		
	
		
			
				
					|  |  |  |             LIMIT #{offset},#{pageSize} | 
			
		
	
		
			
				
					|  |  |  |             <if test="isPage != null and isPage"> | 
			
		
	
		
			
				
					|  |  |  |                 LIMIT #{offset},#{pageSize} | 
			
		
	
		
			
				
					|  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |             order by created_time | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | </mapper> | 
			
		
	
	
		
			
				
					|  |  | 
 |