| 
					
				 | 
			
			
				@@ -16,7 +16,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as dqjdsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as zjczsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as cjdt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-               h.wxgmc as azren,h.wxgid as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               a.worker_name as azren,h.brand_worker_id as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                case a.source when 'MOBILE' then 2 else 1 end as dnorsj,a.settle_websit_id as jsdwxtbh, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as scazsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                a.settle_amount as azfy,a.settle_amount as jsfy, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -33,12 +33,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                    (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join itf_tbl_wangdian_wxg_download h on h.sfzen in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select idcard from worker where worker_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select worker_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                       and h.wdno in (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                                          and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                     (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 left join worker_brand_account h on h.worker_id = a.worker_id and h.websit_id = a.operator_websit_id and h.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -56,7 +51,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as dqjdsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as zjczsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as cjdt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-               h.wxgmc as azren,h.wxgid as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               a.worker_name as azren,h.brand_worker_id as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                case a.source when 'MOBILE' then 2 else 1 end as dnorsj,a.settle_websit_id as jsdwxtbh, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as scazsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                a.settle_amount as azfy,a.settle_amount as jsfy, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -73,12 +68,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                           (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                   (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join itf_tbl_wangdian_wxg_download h on h.sfzen in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           (select idcard from worker where worker_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                   (select worker_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                     and h.wdno in (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                                        and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                           (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 left join worker_brand_account h on h.worker_id = a.worker_id and h.websit_id = a.operator_websit_id and h.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -97,7 +87,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as dqjdsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as zjczsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as cjdt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-               h.wxgmc as azren,h.wxgid as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               a.worker_name as azren,h.brand_worker_id as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                case a.source when 'MOBILE' then 2 else 1 end as dnorsj,a.settle_websit_id as jsdwxtbh, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as scazsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                a.settle_amount as azfy,a.settle_amount as jsfy, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -114,12 +104,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                           (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                   (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join itf_tbl_wangdian_wxg_download h on h.sfzen in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          (select idcard from worker where worker_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                  (select worker_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           and h.wdno in (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                                              and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                  (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 left join worker_brand_account h on h.worker_id = a.worker_id and h.websit_id = a.operator_websit_id and h.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -137,7 +122,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as dqjdsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as zjczsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as cjdt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-               h.wxgmc as azren,h.wxgid as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               a.worker_name as azren,h.brand_worker_id as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                case a.source when 'MOBILE' then 2 else 1 end as dnorsj,a.settle_websit_id as jsdwxtbh, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as scazsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                a.settle_amount as azfy,a.settle_amount as jsfy, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -151,15 +136,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join sys_dict_ref d on d.dict_code=a.small_id and d.brand_id = #{request.brandId} and d.dict_type='SMALL_TYPE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join sys_dict_ref e on e.dict_code=a.series_id and e.brand_id = #{request.brandId} and e.dict_type='SERIES' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  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 operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                           (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                   (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join itf_tbl_wangdian_wxg_download h on h.sfzen in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                              (select idcard from worker where worker_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                                               (select worker_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            and h.wdno in (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                               and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                                   (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 left join worker_brand_account h on h.worker_id = a.worker_id and h.websit_id = a.operator_websit_id and h.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -177,7 +157,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as dqjdsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as zjczsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as cjdt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-               h.wxgmc as azren,h.wxgid as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               a.worker_name as azren,h.brand_worker_id as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                case a.source when 'MOBILE' then 2 else 1 end as dnorsj,a.settle_websit_id as jsdwxtbh, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as scazsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                a.settle_amount as azfy,a.settle_amount as jsfy, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -191,15 +171,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join sys_dict_ref d on d.dict_code=a.small_id and d.brand_id = #{request.brandId} and d.dict_type='SMALL_TYPE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join sys_dict_ref e on e.dict_code=a.series_id and e.brand_id = #{request.brandId} and e.dict_type='SERIES' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  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 operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                           (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                   (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join itf_tbl_wangdian_wxg_download h on h.sfzen in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                              (select idcard from worker where worker_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                                               (select worker_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            and h.wdno in (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                               and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                                   (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 left join worker_brand_account h on h.worker_id = a.worker_id and h.websit_id = a.operator_websit_id and h.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -217,7 +192,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as dqjdsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as zjczsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as cjdt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-               h.wxgmc as azren,h.wxgid as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               a.worker_name as azren,h.brand_worker_id as azrenid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                case a.source when 'MOBILE' then 2 else 1 end as dnorsj,a.settle_websit_id as jsdwxtbh, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(a.first_time is null,a.update_time,a.first_time) as scazsj, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                a.settle_amount as azfy,a.settle_amount as jsfy, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -231,15 +206,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join sys_dict_ref d on d.dict_code=a.small_id and d.brand_id = #{request.brandId} and d.dict_type='SMALL_TYPE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join sys_dict_ref e on e.dict_code=a.series_id and e.brand_id = #{request.brandId} and e.dict_type='SERIES' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  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 operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                           (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                   (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  left join order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 left join itf_tbl_wangdian_wxg_download h on h.sfzen in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                              (select idcard from worker where worker_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                                               (select worker_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            and h.wdno in (select brand_websit_number from websit_order_sign where brand_id = #{request.brandId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                               and websit_id in 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                                   (select operator_websit_id from order_install_detail where id = #{request.id})) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                 left join worker_brand_account h on h.worker_id = a.worker_id and h.websit_id = a.operator_websit_id and h.del=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |