delete comment

This commit is contained in:
DESKTOP-2S5P7D1\Windows 10 2024-12-04 22:35:00 +07:00
parent 925c5d1ab2
commit cbd57b86ab
3 changed files with 29 additions and 133 deletions

View file

@ -78,15 +78,15 @@ export class EvaluationController {
},
) {
// await new permission().PermissionList(request, "SYS_EVA_REQ");
let _data = await new permission().PermissionOrgList(request,"SYS_EVA_REQ");
let _data = await new permission().PermissionOrgList(request, "SYS_EVA_REQ");
const [evaluation, total] = await AppDataSource.getRepository(Evaluation)
.createQueryBuilder("evaluation")
.andWhere(
_data.root != undefined && _data.root != null
? _data.root[0] != null
? `evaluation.rootId IN (:...root)`
: `evaluation.rootId is null`
: "1=1",
_data.root != undefined && _data.root != null
? _data.root[0] != null
? `evaluation.rootId IN (:...root)`
: `evaluation.rootId is null`
: "1=1",
{
root: _data.root,
},
@ -120,7 +120,7 @@ export class EvaluationController {
{
child3: _data.child3,
},
)
)
.andWhere(
_data.child4 != undefined && _data.child4 != null
? _data.child4[0] != null
@ -198,13 +198,6 @@ export class EvaluationController {
).andWhere("evaluation.createdUserId = :createdUserId", {
createdUserId: request.user.sub,
});
// .andWhere(
// new Brackets((qb) => {
// qb.orWhere("evaluation.positionLevel LIKE :keyword", {
// keyword: `%${body.keyword}%`,
// });
// }),
// );
}),
)
.orderBy("evaluation.lastUpdatedAt", "DESC")