| 
					
				 | 
			
			
				@@ -1223,4 +1223,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     group by DATE_FORMAT(send_time,'%Y-%m') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <select id="findWorkFlowById" resultMap="OrderResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t1.id, t1.task_no, t1.task_desc, t1.order_user_id, t1.send_time, t1.send_by, t1.plan_finish_date, t1.finish_date, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t1.date_limit, t1.urgency, t1.address, t1.contact_user, t1.contact_phone, t1.order_time, t1.company_org_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t1.department_org_id, t1.order_status, t1.event_type,case when t1.event_type=1 then '运维上报' when t1.event_type=2 then '用户上报' when t1.event_type=3 then '设备告警' end  event_type_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t1.order_type_id, t1.order_pid, t1.tenant_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t1.process_instance_id, t1.process_def_id, t1.current_task_id, t1.current_users, t1.current_task_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t1.create_by, t1.date_create, t1.update_by, t1.date_update, t1.geo,t1.videos,t1.pictures, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t1.device_id, t1.scenes_id, t1.device_name, t1.scenes_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t2.flow_detail,t2.create_by detail_create_by,t2.date_create detail_date_create,t2.update_by detail_update_by,t2.date_update detail_date_update 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    from sc_work_order_manage t1 left  join sc_work_flow_detail t2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    on t1.id = t2.flow_id and t2.flow_type=2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    where t1.id = #{id,jdbcType=INTEGER} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </mapper> 
			 |