|
@@ -1310,10 +1310,7 @@
|
|
|
on tpo.order_id = tpmo.order_id
|
|
on tpo.order_id = tpmo.order_id
|
|
|
where tpmo.flg_valid
|
|
where tpmo.flg_valid
|
|
|
and tpmo.owner_type = any (array ['归属类型-主部门' , '归属类型-从部门'])
|
|
and tpmo.owner_type = any (array ['归属类型-主部门' , '归属类型-从部门'])
|
|
|
- <if test="orderId!=null and orderId!='' ">
|
|
|
|
|
- and tpo.order_id = #{orderId} ::uuid
|
|
|
|
|
- </if>
|
|
|
|
|
- ) mo
|
|
|
|
|
|
|
+ and tpo.order_id = #{orderId} ::uuid) mo
|
|
|
on mo.owner_id = t.org_id
|
|
on mo.owner_id = t.org_id
|
|
|
where t.flg_valid
|
|
where t.flg_valid
|
|
|
|
|
|
|
@@ -1345,9 +1342,7 @@
|
|
|
on tpo.order_id = tpmo.order_id
|
|
on tpo.order_id = tpmo.order_id
|
|
|
where tpmo.flg_valid
|
|
where tpmo.flg_valid
|
|
|
and tpmo.owner_type = any (array ['归属类型-主员工' , '归属类型-从员工'])
|
|
and tpmo.owner_type = any (array ['归属类型-主员工' , '归属类型-从员工'])
|
|
|
- <if test="orderId!=null and orderId!='' ">
|
|
|
|
|
- and tpo.order_id = #{orderId} ::uuid
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+ and tpo.order_id = #{orderId} ::uuid
|
|
|
) mo
|
|
) mo
|
|
|
on mo.owner_id = t.staff_id
|
|
on mo.owner_id = t.staff_id
|
|
|
where t.flg_valid
|
|
where t.flg_valid
|