Merge branch 'develop' into adiDev
This commit is contained in:
commit
fe7dcd6815
8 changed files with 70 additions and 17 deletions
|
|
@ -240,7 +240,7 @@ export class KpiUserEvaluationController extends Controller {
|
|||
@Get("{id}")
|
||||
async GetKpiUserEvaluationById(@Path() id: string) {
|
||||
const kpiUserEvaluation = await this.kpiUserEvalutionRepository.findOne({
|
||||
relations:["kpiPeriod"],
|
||||
relations: ["kpiPeriod"],
|
||||
where: { id: id },
|
||||
});
|
||||
if (!kpiUserEvaluation) {
|
||||
|
|
@ -257,6 +257,7 @@ export class KpiUserEvaluationController extends Controller {
|
|||
lastName: kpiUserEvaluation.lastName,
|
||||
evaluationStatus: kpiUserEvaluation.evaluationStatus,
|
||||
evaluationResults: kpiUserEvaluation.evaluationResults,
|
||||
evaluationReqEdit: kpiUserEvaluation.evaluationReqEdit,
|
||||
createdAt: kpiUserEvaluation.createdAt,
|
||||
evaluatorId: kpiUserEvaluation.evaluatorId,
|
||||
commanderId: kpiUserEvaluation.commanderId,
|
||||
|
|
@ -267,8 +268,9 @@ export class KpiUserEvaluationController extends Controller {
|
|||
capacityPoint: kpiUserEvaluation.capacityPoint,
|
||||
kpiPeriodId: kpiUserEvaluation.kpiPeriodId,
|
||||
year: kpiUserEvaluation.kpiPeriod == null ? null : kpiUserEvaluation.kpiPeriod.year,
|
||||
durationKPI: kpiUserEvaluation.kpiPeriod == null ? null : kpiUserEvaluation.kpiPeriod.durationKPI,
|
||||
}
|
||||
durationKPI:
|
||||
kpiUserEvaluation.kpiPeriod == null ? null : kpiUserEvaluation.kpiPeriod.durationKPI,
|
||||
};
|
||||
return new HttpSuccess(mapData);
|
||||
}
|
||||
|
||||
|
|
@ -289,7 +291,7 @@ export class KpiUserEvaluationController extends Controller {
|
|||
) {
|
||||
const [kpiUserEvaluation, total] = await AppDataSource.getRepository(KpiUserEvaluation)
|
||||
.createQueryBuilder("kpiUserEvaluation")
|
||||
.leftJoinAndSelect("kpiUserEvaluation.kpiPeriod", "kpiPeriod")
|
||||
.leftJoinAndSelect("kpiUserEvaluation.kpiPeriod", "kpiPeriod")
|
||||
.andWhere(kpiPeriodId ? "kpiPeriodId LIKE :kpiPeriodId" : "1=1", {
|
||||
kpiPeriodId: kpiPeriodId,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -238,6 +238,9 @@ export class KpiUserSpecialController extends Controller {
|
|||
achievement3: getKpiUserSpecial.achievement3,
|
||||
achievement4: getKpiUserSpecial.achievement4,
|
||||
achievement5: getKpiUserSpecial.achievement5,
|
||||
startDate: getKpiUserSpecial.startDate,
|
||||
endDate: getKpiUserSpecial.endDate,
|
||||
documentInfoEvidence: getKpiUserSpecial.documentInfoEvidence,
|
||||
};
|
||||
|
||||
return new HttpSuccess(mapKpiUserSpecial);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue