no message
parent
6659f25983
commit
90eb01caed
|
|
@ -48,6 +48,7 @@
|
|||
LEFT JOIN asn.dock dock
|
||||
WHERE 1=1
|
||||
and asn.billType.name!='退货入库单'
|
||||
and company.id in (7,40)
|
||||
and (company.id in (select u.organization.id from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
or 0=(select COALESCE(max(u.id),0) from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
)
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@
|
|||
WHERE 1=1
|
||||
and asn.beLine=1
|
||||
and asn.billType.name!='退货入库单'
|
||||
and company.id in (1,39)
|
||||
and (company.id in (select u.organization.id from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
or 0=(select COALESCE(max(u.id),0) from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
)
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@
|
|||
WHERE 1=1
|
||||
and asn.beLine=0
|
||||
and asn.billType.name!='退货入库单'
|
||||
and company.id in (1,39)
|
||||
and (company.id in (select u.organization.id from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
or 0=(select COALESCE(max(u.id),0) from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
)
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@
|
|||
left join pickTicket.company company
|
||||
left join pickTicket.dock dock
|
||||
where 1=1
|
||||
and company.id in (7,40)
|
||||
and ( pickTicket.status not in('CLOSE') or ( /~ordersAll: {ordersAll} = true~/ ))
|
||||
and (company.id in (select u.organization.id from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
or 0=(select COALESCE(max(u.id),0) from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@
|
|||
left join pickTicket.dock dock
|
||||
where 1=1
|
||||
and pickTicket.beLine=1
|
||||
and company.id in (1,39)
|
||||
and ( pickTicket.status not in('CLOSE') or ( /~ordersAll: {ordersAll} = true~/ ))
|
||||
and (company.id in (select u.organization.id from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
or 0=(select COALESCE(max(u.id),0) from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@
|
|||
left join pickTicket.dock dock
|
||||
where 1=1
|
||||
and pickTicket.beLine=0
|
||||
and company.id in (1,39)
|
||||
and ( pickTicket.status not in('CLOSE') or ( /~ordersAll: {ordersAll} = true~/ ))
|
||||
and (company.id in (select u.organization.id from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
or 0=(select COALESCE(max(u.id),0) from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@
|
|||
LEFT JOIN asn.dock dock
|
||||
WHERE 1=1
|
||||
and asn.billType.name!='退货入库单'
|
||||
and company.id in (7,40)
|
||||
and (company.id in (select u.organization.id from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
or 0=(select COALESCE(max(u.id),0) from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
)
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@
|
|||
left join pickTicket.company company
|
||||
left join pickTicket.dock dock
|
||||
where 1=1
|
||||
and company.id in (7,40)
|
||||
and ( pickTicket.status not in('CLOSE') or ( /~ordersAll: {ordersAll} = true~/ ))
|
||||
and (company.id in (select u.organization.id from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
or 0=(select COALESCE(max(u.id),0) from UserOrganize u where u.user=#{SESSION_USERS})
|
||||
|
|
|
|||
Loading…
Reference in New Issue