no message
This commit is contained in:
parent
f4ef62e0e0
commit
bce6b46eb7
4 changed files with 110 additions and 7 deletions
|
|
@ -1352,7 +1352,13 @@ export class ProfileController extends Controller {
|
|||
async getProfileCommanderDirector(
|
||||
@Request() request: RequestWithUser,
|
||||
@Body()
|
||||
body: { isAct: boolean; isDirector: boolean; keyword: string; page: number; pageSize: number },
|
||||
body: {
|
||||
isAct: boolean;
|
||||
isDirector: boolean;
|
||||
keyword: string;
|
||||
page: number;
|
||||
pageSize: number;
|
||||
},
|
||||
) {
|
||||
if (body.isAct == true) {
|
||||
const posMaster = await this.posMasterRepo.findOne({
|
||||
|
|
@ -1366,12 +1372,12 @@ export class ProfileController extends Controller {
|
|||
let condition: any = {
|
||||
orgRootId: posMaster.orgRootId || "",
|
||||
};
|
||||
if (body.isDirector == true) {
|
||||
condition = {
|
||||
orgRootId: posMaster.orgRootId || "",
|
||||
isDirector: true,
|
||||
};
|
||||
}
|
||||
// if (body.isDirector == true) {
|
||||
condition = {
|
||||
orgRootId: posMaster.orgRootId || "",
|
||||
isDirector: true,
|
||||
};
|
||||
// }
|
||||
const [lists, total] = await AppDataSource.getRepository(viewDirectorActing)
|
||||
.createQueryBuilder("viewDirectorActing")
|
||||
.andWhere(condition)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue