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;
|
||||
profileId?: string | null;
|
||||
// filters?: string | null;
|
||||
// keyword?: string | null;
|
||||
// keyword?: string | null;
|
||||
},
|
||||
) {
|
||||
let templateName: any;
|
||||
|
|
@ -89,7 +89,6 @@ export class ReportController extends Controller {
|
|||
reportName = "KPI8";
|
||||
}
|
||||
if (requestBody.root && requestBody.periodId) {
|
||||
|
||||
const getEvaluations = await this.kpiUserEvaluationRepository.find({
|
||||
where: { kpiPeriodId: requestBody.periodId },
|
||||
});
|
||||
|
|
@ -123,7 +122,6 @@ export class ReportController extends Controller {
|
|||
// roundNo: "๑ (๒๕๖๔) ",
|
||||
// officer: officer,
|
||||
// };
|
||||
|
||||
}
|
||||
// if (requestBody.filters && requestBody.keyword) {
|
||||
// }
|
||||
|
|
@ -134,11 +132,8 @@ export class ReportController extends Controller {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
@Post("kpi9/{periodId}")
|
||||
async GetReportKpi9(
|
||||
@Path() profileId?: string | null,
|
||||
) {
|
||||
@Post("kpi9/{profileId}")
|
||||
async GetReportKpi9(@Path() profileId?: string | null) {
|
||||
let formattedData: any;
|
||||
if (profileId) {
|
||||
const kpiUserEvaluation = await this.kpiUserEvaluationRepository.findOne({
|
||||
|
|
@ -162,9 +157,7 @@ export class ReportController extends Controller {
|
|||
where: { kpiPeriodId: period?.id },
|
||||
});
|
||||
|
||||
formattedData = {
|
||||
|
||||
};
|
||||
formattedData = {};
|
||||
}
|
||||
|
||||
return new HttpSuccess({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue