fix(salix): #7867 avoid deactivate user when is supplier
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
3340ddeccd
commit
a178c285c0
|
@ -21,6 +21,9 @@ BEGIN
|
|||
AND a.id IS NULL
|
||||
AND u.active
|
||||
AND c.created < util.VN_CURDATE() - INTERVAL vMonths MONTH
|
||||
AND u.role NOT IN (
|
||||
SELECT id FROM `role` r WHERE r.name = 'supplier'
|
||||
)
|
||||
AND u.id NOT IN (
|
||||
SELECT DISTINCT c.id
|
||||
FROM client c
|
||||
|
|
Loading…
Reference in New Issue