|
|
@@ -1571,7 +1571,7 @@
|
|
|
a.salesman_id = c.id left join admin d on
|
|
|
a.finance_id = d.id left join admin e on
|
|
|
a.technician_id = e.id left join department_management f on
|
|
|
- d.department_id = f.id left join business_varieties g on
|
|
|
+ c.department_id = f.id left join business_varieties g on
|
|
|
a.contract_type = g.id
|
|
|
where a.order_type = 0 and a.order_status = 3
|
|
|
and (a.liquidation_status = 1 or a.liquidation_status = 2 or a.approval = 2) <!-- 已首付 or 已付清 or 已特批 -->
|
|
|
@@ -1619,7 +1619,7 @@
|
|
|
a.salesman_id = c.id left join admin d on
|
|
|
a.finance_id = d.id left join admin e on
|
|
|
a.technician_id = e.id left join department_management f on
|
|
|
- d.department_id = f.id left join business_varieties g on
|
|
|
+ c.department_id = f.id left join business_varieties g on
|
|
|
a.contract_type = g.id
|
|
|
where a.order_type = 0 and a.order_status = 3
|
|
|
and (a.liquidation_status = 1 or a.liquidation_status = 2 or a.approval = 2) <!-- 已首付 or 已付清 or 已特批 -->
|