Merge branch 'develop' into adiDev
This commit is contained in:
commit
afc42b743e
2 changed files with 12 additions and 4 deletions
|
|
@ -238,7 +238,12 @@ export class DevelopmentEmployeeHistoryController extends Controller {
|
||||||
: "1=1",
|
: "1=1",
|
||||||
{ year: body.year },
|
{ year: body.year },
|
||||||
)
|
)
|
||||||
.andWhere(body.root != null ? "developmentHistory.root = :root" : "1=1", { root: body.root })
|
.andWhere(
|
||||||
|
body.root != null && body.root != undefined ? "developmentHistory.rootId = :root" : "1=1",
|
||||||
|
{
|
||||||
|
root: body.root,
|
||||||
|
},
|
||||||
|
)
|
||||||
.andWhere("developmentHistory.type = :type", { type: type })
|
.andWhere("developmentHistory.type = :type", { type: type })
|
||||||
.andWhere(
|
.andWhere(
|
||||||
new Brackets((qb) => {
|
new Brackets((qb) => {
|
||||||
|
|
|
||||||
|
|
@ -230,9 +230,12 @@ export class DevelopmentOfficerHistoryController extends Controller {
|
||||||
: "1=1",
|
: "1=1",
|
||||||
{ year: body.year },
|
{ year: body.year },
|
||||||
)
|
)
|
||||||
.andWhere(body.root != null && body.root != undefined ? "development.root = :root" : "1=1", {
|
.andWhere(
|
||||||
root: body.root,
|
body.root != null && body.root != undefined ? "development.rootId = :root" : "1=1",
|
||||||
})
|
{
|
||||||
|
root: body.root,
|
||||||
|
},
|
||||||
|
)
|
||||||
.andWhere(body.root != null ? "developmentHistory.root = :root" : "1=1", { root: body.root })
|
.andWhere(body.root != null ? "developmentHistory.root = :root" : "1=1", { root: body.root })
|
||||||
.andWhere("developmentHistory.type = :type", { type: type })
|
.andWhere("developmentHistory.type = :type", { type: type })
|
||||||
.andWhere(
|
.andWhere(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue