fix colleague not filter leave
This commit is contained in:
parent
7f683fbd48
commit
f2bb98f475
@ -13,6 +13,7 @@
|
|||||||
import { Action } from '~/types/action';
|
import { Action } from '~/types/action';
|
||||||
import { SUCCESS } from '~/constant/code';
|
import { SUCCESS } from '~/constant/code';
|
||||||
import * as ROLE from '~/constant/role_access';
|
import * as ROLE from '~/constant/role_access';
|
||||||
|
import { FALSE } from '~/constant/status';
|
||||||
|
|
||||||
interface RequestBody {
|
interface RequestBody {
|
||||||
community_id: number;
|
community_id: number;
|
||||||
@ -51,6 +52,7 @@ const PcOptionColleagueAction = <Action>{
|
|||||||
.where('community_id', community_id)
|
.where('community_id', community_id)
|
||||||
.select('property_company_user_id');
|
.select('property_company_user_id');
|
||||||
})
|
})
|
||||||
|
.andWhere('ejyy_property_company_user.leave_office', FALSE)
|
||||||
.select(
|
.select(
|
||||||
'ejyy_property_company_department.name as department',
|
'ejyy_property_company_department.name as department',
|
||||||
'ejyy_property_company_user.department_id',
|
'ejyy_property_company_user.department_id',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user