add viewProfileEmp

This commit is contained in:
AdisakKanthawilang 2025-02-17 10:57:03 +07:00
parent db3c9583f6
commit ee71e985ab
3 changed files with 65 additions and 8 deletions

View file

@ -1174,12 +1174,12 @@ export class OrganizationUnauthorizeController extends Controller {
* @summary 5
*
*/
@Get("calculateEvaluation")
@Get("calculateEvaluation/{type}")
async calculateEvaluation(
// @Path() node: number,
@Path() type: string,
// @Path() nodeId: string,
) {
const conType = type.toUpperCase();
// let condition :any = {};
// switch (node) {
// case 0:
@ -1206,7 +1206,10 @@ export class OrganizationUnauthorizeController extends Controller {
// ...condition
// }
})
// if(conType == "EMPLOYEE"){
// const lists = await this.viewProfileEmployeeEvaluationRepo.find({
// })
// }
const groupData: any = {};
const year = new Date().getFullYear();
const years = [year, year - 1, year - 2, year - 3, year - 4];