หาสถานะรอบที่active
This commit is contained in:
parent
426583bcdb
commit
43ae1b5b07
1 changed files with 1 additions and 0 deletions
|
|
@ -1434,6 +1434,7 @@ export class SalaryPeriodController extends Controller {
|
|||
const [salaryPeriod, total] = await AppDataSource.getRepository(SalaryPeriod)
|
||||
.createQueryBuilder("salaryPeriod")
|
||||
.andWhere(year != 0 ? "salaryPeriod.year LIKE :year" : "1=1", { year: `${year}` })
|
||||
.andWhere({ isActive: true })
|
||||
.select([
|
||||
"salaryPeriod.id",
|
||||
"salaryPeriod.period",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue