1
0
mirror of https://github.com/chowa/ejyy.git synced 2026-01-21 05:07:48 +08:00

fix colleague not filter leave

This commit is contained in:
xuecong
2021-11-16 21:32:52 +08:00
parent 7f683fbd48
commit f2bb98f475

View File

@@ -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 = <Action>{
.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',