@ -120,7 +120,7 @@ async function searchPepMember (ctx) {
LEFT JOIN department
ON department.id = department_user.department
WHERE
user.delete = 0
user.delete = false
${whereOption.length ? `AND ${whereOption.join(' OR ')}` : ''}
`).toPromise()
@ -199,7 +199,7 @@ module.exports = function (app, opts) {
ON vacateCountStatistic.pepUserId = member.pep_user_id
`: ''}
member.del = 0
member.del = false
${keywordTarget == 'role' && keyword ? `
AND user.id IN (
SELECT user_role.user