cherry 1
This commit is contained in:
parent
248dff2747
commit
043fe80254
|
@ -92,7 +92,9 @@ module.exports = Self => {
|
|||
AND child.depth = parent.depth + 1
|
||||
LEFT JOIN zoneIncluded zi ON zi.geoFk = child.id
|
||||
AND zi.zoneFk = ?
|
||||
WHERE parent.id = ?) AS nst`, [zoneFk, parentFk]);
|
||||
WHERE (? IS NULL AND zg.parentFk IS NULL)
|
||||
OR (? IS NOT NULL AND zg.parentFk = ?)) AS nst`,
|
||||
[zoneFk, parentFk, parentFk, parentFk]);
|
||||
|
||||
// Get nodes from depth greather than Origin
|
||||
stmt.merge(conn.makeSuffix(filter));
|
||||
|
|
Loading…
Reference in New Issue