no message

main
HUOJIN\92525 2025-12-05 16:40:43 +08:00
parent 6659f25983
commit 90eb01caed
8 changed files with 8 additions and 0 deletions

View File

@ -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})
)

View File

@ -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})
)

View File

@ -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})
)

View File

@ -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})

View File

@ -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})

View File

@ -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})

View File

@ -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})
)

View File

@ -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})