From f2bb98f475802b801e0681b9642015fec0c60f20 Mon Sep 17 00:00:00 2001 From: xuecong <> Date: Tue, 16 Nov 2021 21:32:52 +0800 Subject: [PATCH] fix colleague not filter leave --- server/src/module/pc/controller/option/colleague.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/module/pc/controller/option/colleague.ts b/server/src/module/pc/controller/option/colleague.ts index 21b1b06..25ae91a 100644 --- a/server/src/module/pc/controller/option/colleague.ts +++ b/server/src/module/pc/controller/option/colleague.ts @@ -13,6 +13,7 @@ import { Action } from '~/types/action'; import { SUCCESS } from '~/constant/code'; import * as ROLE from '~/constant/role_access'; +import { FALSE } from '~/constant/status'; interface RequestBody { community_id: number; @@ -51,6 +52,7 @@ const PcOptionColleagueAction = { .where('community_id', community_id) .select('property_company_user_id'); }) + .andWhere('ejyy_property_company_user.leave_office', FALSE) .select( 'ejyy_property_company_department.name as department', 'ejyy_property_company_user.department_id',