edit permission
This commit is contained in:
parent
3737b2ed73
commit
31a98ea777
3 changed files with 21 additions and 9 deletions
|
|
@ -26,7 +26,7 @@ import { Training } from "../entities/Training";
|
|||
import { Assessment } from "../entities/Assessment";
|
||||
import { Director } from "../entities/Director";
|
||||
import { Meeting } from "../entities/Meeting";
|
||||
import { ConvertToThaiStep, ConvertToThaiType } from "../services/storage";
|
||||
import { ConvertThaiToType, ConvertToThaiStep, ConvertToThaiType } from "../services/storage";
|
||||
import { Brackets } from "typeorm";
|
||||
import CallAPI from "../interfaces/call-api";
|
||||
import permission from "../interfaces/permission";
|
||||
|
|
@ -146,7 +146,10 @@ export class EvaluationController {
|
|||
.orWhere("evaluation.citizenId LIKE :keyword", { keyword: `%${body.keyword}%` })
|
||||
.orWhere("evaluation.position LIKE :keyword", { keyword: `%${body.keyword}%` })
|
||||
.orWhere("evaluation.posNo LIKE :keyword", { keyword: `%${body.keyword}%` })
|
||||
.orWhere("evaluation.oc LIKE :keyword", { keyword: `%${body.keyword}%` });
|
||||
.orWhere("evaluation.oc LIKE :keyword", { keyword: `%${body.keyword}%` })
|
||||
.orWhere("evaluation.type IN (:...type)", {
|
||||
type: body.keyword == null ? [""] : ConvertThaiToType(body.keyword),
|
||||
});
|
||||
}),
|
||||
);
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue