| 
					
				 | 
			
			
				@@ -41,29 +41,29 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                a.area as xian,a.area_id as xianid,a.street as xzhen,a.street_id as xzhenid 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from order_base a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             left join brand_websit b on b.brand_websit_number=a.rece_websit_id and b.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            left join sys_dict_ref c on c.dict_code=a.main_id and c.brand_id = #{request.brandId} and c.dict_type='MAIN_TYPE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            left join worker_brand_account d on d.worker_id = a.worker_id and d.websit_id = a.rece_websit_id and d.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            left join brand_websit e on e.brand_id = #{request.brandId} and e.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                 (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            left join brand_websit f on f.brand_id = #{request.brandId} and f.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                 (select rece_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            left join brand_websit g on g.brand_id = #{request.brandId} and g.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                 (select rece_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           left join brand_websit h on h.brand_id = #{request.brandId} and h.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                 (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           left join brand_websit i on i.brand_id = #{request.brandId} and i.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                 (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           left join order_install j on j.order_base_id=a.id and a.id = #{request.orderNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           left join brand_websit k on k.brand_id = #{request.brandId} and k.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 (select ref_websit_id from customer_information_websit where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                 (select sale_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           left join order_state_contrast_upload l on l.order_state=a.last_order_status and l.state_type=10 and l.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           left join order_state_contrast_upload m on m.order_state=a.order_status and m.state_type=10 and m.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join sys_dict_ref c on c.dict_code=a.main_id and c.brand_id = #{request.brandId} and c.dict_type='MAIN_TYPE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join worker_brand_account d on d.worker_id = a.worker_id and d.websit_id = a.rece_websit_id and d.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit e on e.brand_id = #{request.brandId} and e.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit f on f.brand_id = #{request.brandId} and f.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select rece_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit g on g.brand_id = #{request.brandId} and g.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select rece_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit h on h.brand_id = #{request.brandId} and h.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit i on i.brand_id = #{request.brandId} and i.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join order_install j on j.order_base_id=a.id and a.id = #{request.orderNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit k on k.brand_id = #{request.brandId} and k.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select ref_websit_id from customer_information_websit where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select sale_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join order_state_contrast l on l.order_state=a.last_order_status and l.state_type=10 and l.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join order_state_contrast m on m.order_state=a.order_status and m.state_type=10 and m.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.id = #{request.orderNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -95,27 +95,27 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           IFNULL(a.info_source_id, 102) as xxlyid,IFNULL(a.user_attr_id, 1) as yhsxid,IFNULL(a.out_wxcount,1) as wxcount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           '1' as extjson5,IFNULL(a.vip,'')  as vip 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from order_base a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join sys_dict_ref c on c.dict_code=a.main_id and c.brand_id = 1 and c.dict_type='MAIN_TYPE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join worker_brand_account d on d.worker_id = a.worker_id and d.websit_id = a.rece_websit_id and d.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit e on e.brand_id = #{request.brandId} and e.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit g on g.brand_id = #{request.brandId} and g.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select rece_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit h on h.brand_id = #{request.brandId} and h.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit i on i.brand_id = #{request.brandId} and i.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join order_state_contrast_upload m on m.order_state=a.order_status and m.state_type=60 and m.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit n on n.brand_id = #{request.brandId} and n.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select ref_websit_id from customer_information_websit where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select sale_websit_id from order_base where id  = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join order_state_contrast_upload o on o.order_state=a.last_order_status and o.state_type=60 and o.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join order_state_contrast_upload p on p.order_state=a.order_status and p.state_type=60 and p.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join order_repair q on q.order_base_id=a.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join sys_dict_ref c on c.dict_code=a.main_id and c.brand_id = 1 and c.dict_type='MAIN_TYPE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join worker_brand_account d on d.worker_id = a.worker_id and d.websit_id = a.rece_websit_id and d.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join brand_websit e on e.brand_id = #{request.brandId} and e.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join brand_websit g on g.brand_id = #{request.brandId} and g.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (select rece_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join brand_websit h on h.brand_id = #{request.brandId} and h.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join brand_websit i on i.brand_id = #{request.brandId} and i.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join order_state_contrast m on m.order_state=a.order_status and m.state_type=60 and m.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join brand_websit n on n.brand_id = #{request.brandId} and n.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (select ref_websit_id from customer_information_websit where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (select sale_websit_id from order_base where id  = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join order_state_contrast o on o.order_state=a.last_order_status and o.state_type=60 and o.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join order_state_contrast p on p.order_state=a.order_status and p.state_type=60 and p.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            left join order_repair q on q.order_base_id=a.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.id = #{request.orderNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -125,8 +125,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                e.brand_websit_number as fjwd 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from order_base a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join brand_websit e on e.brand_id = #{request.brandId} and e.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                                                 (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                                                                                                                                            (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.id = #{request.orderNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -134,8 +134,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         select a.id as worker_order_no, 2 as azorwx,now() as crdt,a.pgid as fjid,e.brand_websit_number as fjwd 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from order_base a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join brand_websit e on e.brand_id = #{request.brandId} and e.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                                                 (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                                                                                                                                            (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.id = #{request.orderNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -145,8 +145,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                e.brand_websit_number as fjwd 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from order_base a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join brand_websit e on e.brand_id = #{request.brandId} and e.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                                                 (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                                                                                                                                            (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.id = #{request.orderNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -188,29 +188,29 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                a.area as xian,a.area_id as xianid,a.street as xzhen,a.street_id as xzhenid 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from order_base a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join brand_websit b on b.brand_websit_number=a.rece_websit_id and b.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join sys_dict_ref c on c.dict_code=a.main_id and c.brand_id = #{request.brandId} and c.dict_type='MAIN_TYPE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join worker_brand_account d on d.worker_id = a.worker_id and d.websit_id = a.rece_websit_id and d.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit e on e.brand_id = #{request.brandId} and e.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit f on f.brand_id = #{request.brandId} and f.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select rece_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit g on g.brand_id = #{request.brandId} and g.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select rece_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit h on h.brand_id = #{request.brandId} and h.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select create_sys from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit i on i.brand_id = #{request.brandId} and i.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select brand_websit_number from websit_order_sign where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join order_install j on j.order_base_id=a.id and a.id = #{request.orderNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join brand_websit k on k.brand_id = #{request.brandId} and k.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select ref_websit_id from customer_information_websit where websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select sale_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join order_state_contrast_upload l on l.order_state=a.last_order_status and l.state_type=10 and l.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join order_state_contrast_upload m on m.order_state=a.order_status and m.state_type=10 and m.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join sys_dict_ref c on c.dict_code=a.main_id and c.brand_id = #{request.brandId} and c.dict_type='MAIN_TYPE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join worker_brand_account d on d.worker_id = a.worker_id and d.websit_id = a.rece_websit_id and d.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit e on e.brand_id = #{request.brandId} and e.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit f on f.brand_id = #{request.brandId} and f.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select rece_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit g on g.brand_id = #{request.brandId} and g.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select rece_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit h on h.brand_id = #{request.brandId} and h.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select create_sys from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit i on i.brand_id = #{request.brandId} and i.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join order_install j on j.order_base_id=a.id and a.id = #{request.orderNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join brand_websit k on k.brand_id = #{request.brandId} and k.brand_websit_number in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select ref_websit_id from customer_information_websit where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (select sale_websit_id from order_base where id = #{request.orderNo})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join order_state_contrast l on l.order_state=a.last_order_status and l.state_type=10 and l.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join order_state_contrast m on m.order_state=a.order_status and m.state_type=10 and m.brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.id = #{request.orderNo} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |