fix
This commit is contained in:
parent
12160da78f
commit
5f88a04036
1 changed files with 9 additions and 0 deletions
|
|
@ -473,6 +473,9 @@ export class ReportController extends Controller {
|
|||
.createQueryBuilder("kpiUserEvaluation")
|
||||
.leftJoinAndSelect("kpiUserEvaluation.kpiPeriod", "kpiPeriod")
|
||||
.where("kpiUserEvaluation.profileId = :profileId", { profileId: requestBody.profileId })
|
||||
.andWhere("kpiUserEvaluation.evaluationStatus = :evaluationStatus", {
|
||||
evaluationStatus: "KP7",
|
||||
})
|
||||
// .where("kpiPeriod.year = :year", { year: yearNow })
|
||||
.groupBy("kpiUserEvaluation.kpiPeriodId")
|
||||
.select("MIN(kpiUserEvaluation.id) as id")
|
||||
|
|
@ -637,6 +640,9 @@ export class ReportController extends Controller {
|
|||
.createQueryBuilder("kpiUserEvaluation")
|
||||
.leftJoinAndSelect("kpiUserEvaluation.kpiPeriod", "kpiPeriod")
|
||||
.where("kpiUserEvaluation.profileId = :profileId", { profileId: requestBody.profileId })
|
||||
.andWhere("kpiUserEvaluation.evaluationStatus = :evaluationStatus", {
|
||||
evaluationStatus: "KP7",
|
||||
})
|
||||
.andWhere("kpiPeriod.year BETWEEN :startYear AND :endYear", {
|
||||
startYear: yearNow - 4,
|
||||
endYear: yearNow,
|
||||
|
|
@ -850,6 +856,9 @@ export class ReportController extends Controller {
|
|||
.createQueryBuilder("kpiUserEvaluation")
|
||||
.leftJoinAndSelect("kpiUserEvaluation.kpiPeriod", "kpiPeriod")
|
||||
.where("kpiUserEvaluation.profileId = :profileId", { profileId: requestBody.profileId })
|
||||
.andWhere("kpiUserEvaluation.evaluationStatus = :evaluationStatus", {
|
||||
evaluationStatus: "KP7",
|
||||
})
|
||||
.andWhere("kpiPeriod.year BETWEEN :startYear AND :endYear", {
|
||||
startYear: yearNow - 2,
|
||||
endYear: yearNow,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue