fix(salix): #7867 apply SQL conventions
gitea/salix/pipeline/pr-master This commit looks good
Details
gitea/salix/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
a178c285c0
commit
befcf89534
|
@ -21,9 +21,7 @@ BEGIN
|
||||||
AND a.id IS NULL
|
AND a.id IS NULL
|
||||||
AND u.active
|
AND u.active
|
||||||
AND c.created < util.VN_CURDATE() - INTERVAL vMonths MONTH
|
AND c.created < util.VN_CURDATE() - INTERVAL vMonths MONTH
|
||||||
AND u.role NOT IN (
|
AND NOT u.role = (SELECT id FROM `role` WHERE name = 'supplier')
|
||||||
SELECT id FROM `role` r WHERE r.name = 'supplier'
|
|
||||||
)
|
|
||||||
AND u.id NOT IN (
|
AND u.id NOT IN (
|
||||||
SELECT DISTINCT c.id
|
SELECT DISTINCT c.id
|
||||||
FROM client c
|
FROM client c
|
||||||
|
|
Loading…
Reference in New Issue