|
@@ -580,12 +580,14 @@
|
|
|
c.order_status as orderStatus,
|
|
c.order_status as orderStatus,
|
|
|
c.liquidation_status as liquidationStatus,
|
|
c.liquidation_status as liquidationStatus,
|
|
|
c.approval,
|
|
c.approval,
|
|
|
- d.name as salesmanName
|
|
|
|
|
|
|
+ d.name as salesmanName,
|
|
|
|
|
+ e.name as departmentName
|
|
|
from
|
|
from
|
|
|
contract a left join user b on
|
|
contract a left join user b on
|
|
|
a.uid = b.id left join t_order c on
|
|
a.uid = b.id left join t_order c on
|
|
|
a.order_no = c.order_no left join admin d on
|
|
a.order_no = c.order_no left join admin d on
|
|
|
- c.salesman_id = d.id
|
|
|
|
|
|
|
+ c.salesman_id = d.id left join department_management e on
|
|
|
|
|
+ d.department_id = e.id
|
|
|
where 1=1
|
|
where 1=1
|
|
|
<if test="deleteSign != null">
|
|
<if test="deleteSign != null">
|
|
|
and a.delete_sign = #{deleteSign,jdbcType=INTEGER}
|
|
and a.delete_sign = #{deleteSign,jdbcType=INTEGER}
|