fix
This commit is contained in:
parent
14f5a082ca
commit
3de8591ce0
1 changed files with 8 additions and 2 deletions
|
|
@ -151,12 +151,18 @@ export class DevelopmentScholarshipController extends Controller {
|
|||
.leftJoinAndSelect("developmentScholarship.posLevel", "posLevel")
|
||||
.leftJoinAndSelect("developmentScholarship.posType", "posType")
|
||||
.andWhere(
|
||||
year != 0 && year != null && year != undefined
|
||||
year !== 0 && year != null && year != undefined
|
||||
? "developmentScholarship.scholarshipYear = :scholarshipYear"
|
||||
: "1=1",
|
||||
{ scholarshipYear: year },
|
||||
)
|
||||
.andWhere("developmentScholarship.scholarshipType = :scholarshipType", { scholarshipType: scholarshipType })
|
||||
.andWhere(
|
||||
scholarshipType != null && scholarshipType != undefined
|
||||
?
|
||||
"developmentScholarship.scholarshipType = :scholarshipType"
|
||||
: "1=1",
|
||||
{ scholarshipType: scholarshipType }
|
||||
)
|
||||
.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.where(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue