no message

This commit is contained in:
Kittapath 2024-06-27 12:02:32 +07:00
parent 8050b53228
commit cb3ac2f492

View file

@ -13,7 +13,7 @@ import {
Query,
} from "tsoa";
import { AppDataSource } from "../database/data-source";
import { In, Not, MoreThan, Brackets, Like, MoreThanOrEqual } from "typeorm";
import { In, Not, MoreThan, Brackets, Like, MoreThanOrEqual, IsNull } from "typeorm";
import HttpSuccess from "../interfaces/http-success";
import HttpError from "../interfaces/http-error";
import HttpStatusCode from "../interfaces/http-status";
@ -28,6 +28,7 @@ import { SalaryRanks } from "../entities/SalaryRanks";
import CallAPI from "../interfaces/call-api";
import { SalaryOrgEmployee } from "../entities/SalaryOrgEmployee";
import { SalaryProfileEmployee } from "../entities/SalaryProfileEmployee";
import { isNullOrUndefined } from "util";
@Route("api/v1/salary/period")
@Tags("Salary")
@ -1871,6 +1872,7 @@ export class SalaryPeriodController extends Controller {
.createQueryBuilder("salaryPeriod")
.andWhere(year != 0 ? "salaryPeriod.year LIKE :year" : "1=1", { year: `${year}` })
.andWhere({ isActive: true })
.andWhere({ revisionId: Not(IsNull()) })
.select([
"salaryPeriod.id",
"salaryPeriod.period",