fix
This commit is contained in:
parent
dd7c8ea670
commit
6599aa513e
1 changed files with 4 additions and 11 deletions
|
|
@ -42,7 +42,7 @@ export class ReportController extends Controller {
|
||||||
periodId?: string | null;
|
periodId?: string | null;
|
||||||
profileId?: string | null;
|
profileId?: string | null;
|
||||||
// filters?: string | null;
|
// filters?: string | null;
|
||||||
// keyword?: string | null;
|
// keyword?: string | null;
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
let templateName: any;
|
let templateName: any;
|
||||||
|
|
@ -89,7 +89,6 @@ export class ReportController extends Controller {
|
||||||
reportName = "KPI8";
|
reportName = "KPI8";
|
||||||
}
|
}
|
||||||
if (requestBody.root && requestBody.periodId) {
|
if (requestBody.root && requestBody.periodId) {
|
||||||
|
|
||||||
const getEvaluations = await this.kpiUserEvaluationRepository.find({
|
const getEvaluations = await this.kpiUserEvaluationRepository.find({
|
||||||
where: { kpiPeriodId: requestBody.periodId },
|
where: { kpiPeriodId: requestBody.periodId },
|
||||||
});
|
});
|
||||||
|
|
@ -123,7 +122,6 @@ export class ReportController extends Controller {
|
||||||
// roundNo: "๑ (๒๕๖๔) ",
|
// roundNo: "๑ (๒๕๖๔) ",
|
||||||
// officer: officer,
|
// officer: officer,
|
||||||
// };
|
// };
|
||||||
|
|
||||||
}
|
}
|
||||||
// if (requestBody.filters && requestBody.keyword) {
|
// if (requestBody.filters && requestBody.keyword) {
|
||||||
// }
|
// }
|
||||||
|
|
@ -134,11 +132,8 @@ export class ReportController extends Controller {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Post("kpi9/{profileId}")
|
||||||
@Post("kpi9/{periodId}")
|
async GetReportKpi9(@Path() profileId?: string | null) {
|
||||||
async GetReportKpi9(
|
|
||||||
@Path() profileId?: string | null,
|
|
||||||
) {
|
|
||||||
let formattedData: any;
|
let formattedData: any;
|
||||||
if (profileId) {
|
if (profileId) {
|
||||||
const kpiUserEvaluation = await this.kpiUserEvaluationRepository.findOne({
|
const kpiUserEvaluation = await this.kpiUserEvaluationRepository.findOne({
|
||||||
|
|
@ -162,9 +157,7 @@ export class ReportController extends Controller {
|
||||||
where: { kpiPeriodId: period?.id },
|
where: { kpiPeriodId: period?.id },
|
||||||
});
|
});
|
||||||
|
|
||||||
formattedData = {
|
formattedData = {};
|
||||||
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new HttpSuccess({
|
return new HttpSuccess({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue