|
@@ -12,7 +12,7 @@
|
|
when 'out' then '更换外机'
|
|
when 'out' then '更换外机'
|
|
else '安装整机' end as aznr,
|
|
else '安装整机' end as aznr,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
- f.brand_websit_number as czwd,
|
|
|
|
|
|
+ a.operator_websit_id as czwd,
|
|
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 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 zjczsj,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
@@ -29,9 +29,6 @@
|
|
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 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 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 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 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.group_company_id = #{request.brandId} and f.brand_websit_number in
|
|
|
|
- (select brand_websit_id 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 order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.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
|
|
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}
|
|
where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id}
|
|
@@ -47,7 +44,7 @@
|
|
when 'out' then '更换外机'
|
|
when 'out' then '更换外机'
|
|
else '安装整机' end as aznr,
|
|
else '安装整机' end as aznr,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
- f.brand_websit_number as czwd,
|
|
|
|
|
|
+ a.operator_websit_id as czwd,
|
|
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 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 zjczsj,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
@@ -64,9 +61,6 @@
|
|
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 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 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 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 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.group_company_id = #{request.brandId} and f.brand_websit_number in
|
|
|
|
- (select brand_websit_id 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 order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.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
|
|
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}
|
|
where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id}
|
|
@@ -83,7 +77,7 @@
|
|
when 'out' then '更换外机'
|
|
when 'out' then '更换外机'
|
|
else '安装整机' end as aznr,
|
|
else '安装整机' end as aznr,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
- f.brand_websit_number as czwd,
|
|
|
|
|
|
+ a.operator_websit_id as czwd,
|
|
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 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 zjczsj,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
@@ -100,9 +94,6 @@
|
|
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 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 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 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 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.group_company_id = #{request.brandId} and f.brand_websit_number in
|
|
|
|
- (select brand_websit_id 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 order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.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
|
|
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}
|
|
where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id}
|
|
@@ -118,7 +109,7 @@
|
|
when 'out' then '更换外机'
|
|
when 'out' then '更换外机'
|
|
else '安装整机' end as aznr,
|
|
else '安装整机' end as aznr,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
- f.brand_websit_number as czwd,
|
|
|
|
|
|
+ a.operator_websit_id as czwd,
|
|
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 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 zjczsj,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
@@ -135,9 +126,6 @@
|
|
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 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 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 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 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.group_company_id = #{request.brandId} and f.brand_websit_number in
|
|
|
|
- (select brand_websit_id 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 order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.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
|
|
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}
|
|
where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id}
|
|
@@ -153,7 +141,7 @@
|
|
when 'out' then '更换外机'
|
|
when 'out' then '更换外机'
|
|
else '安装整机' end as aznr,
|
|
else '安装整机' end as aznr,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
- f.brand_websit_number as czwd,
|
|
|
|
|
|
+ a.operator_websit_id as czwd,
|
|
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 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 zjczsj,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
@@ -170,9 +158,6 @@
|
|
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 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 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 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 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.group_company_id = #{request.brandId} and f.brand_websit_number in
|
|
|
|
- (select brand_websit_id 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 order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.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
|
|
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}
|
|
where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id}
|
|
@@ -188,7 +173,7 @@
|
|
when 'out' then '更换外机'
|
|
when 'out' then '更换外机'
|
|
else '安装整机' end as aznr,
|
|
else '安装整机' end as aznr,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
'' as zjia, 0 as jcguan, '' kqkg,'' as gkzy,'' as yccxqk,a.worker_mobile as shji,a.worker_name as czren,a.first_time as czsj,
|
|
- f.brand_websit_number as czwd,
|
|
|
|
|
|
+ a.operator_websit_id as czwd,
|
|
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 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 zjczsj,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
if(a.first_time is null,a.update_time,a.first_time) as cjdt,
|
|
@@ -205,9 +190,6 @@
|
|
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 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 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 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 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.group_company_id = #{request.brandId} and f.brand_websit_number in
|
|
|
|
- (select brand_websit_id 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 order_install_detail_fee g on g.order_base_id = a.order_base_id and g.order_detail_id=a.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
|
|
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}
|
|
where a.order_base_id = #{request.orderNo} and a.status in( '1' , '2') and a.id = #{request.id}
|