refs #7531 Modify zone_getAddresses #2675
|
@ -50,7 +50,7 @@ BEGIN
|
||||||
AND c.isActive
|
AND c.isActive
|
||||||
AND ct.code = 'normal'
|
AND ct.code = 'normal'
|
||||||
AND bt.code <> 'worker'
|
AND bt.code <> 'worker'
|
||||||
AND d.id = vDepartmentFk
|
AND (d.id = vDepartmentFk OR NOT vDepartmentFk)
|
||||||
ivanm marked this conversation as resolved
Outdated
|
|||||||
GROUP BY c.id;
|
GROUP BY c.id;
|
||||||
|
|
||||||
DROP TEMPORARY TABLE tmp.zoneNodes;
|
DROP TEMPORARY TABLE tmp.zoneNodes;
|
||||||
|
|
Loading…
Reference in New Issue
Soporta que pueda ser null:
(d.id = vDepartmentFk OR NOT vDepartmentFk)
Cert, també demana els que no tinguen comercial/departament assignat. Ho modifique.