รายละเอียดสมถนะ
This commit is contained in:
parent
b7aa867f82
commit
751341a11c
1 changed files with 2 additions and 0 deletions
|
|
@ -202,6 +202,7 @@ export class KpiUserCapacityController extends Controller {
|
|||
const [kpiUserCapacity, total] = await AppDataSource.getRepository(KpiUserCapacity)
|
||||
.createQueryBuilder("kpiUserCapacity")
|
||||
.leftJoinAndSelect("kpiUserCapacity.kpiCapacity", "kpiCapacity")
|
||||
.leftJoinAndSelect("kpiCapacity.kpiCapacityDetails", "kpiCapacityDetails")
|
||||
.andWhere("kpiUserCapacity.kpiUserEvaluationId = :id", { id: id })
|
||||
.andWhere(type ? "kpiCapacity.type LIKE :type" : "1=1", { type: type.toLocaleUpperCase() })
|
||||
.orderBy("kpiUserCapacity.createdAt", "ASC")
|
||||
|
|
@ -214,6 +215,7 @@ export class KpiUserCapacityController extends Controller {
|
|||
point: item.point,
|
||||
weight: item.weight,
|
||||
summary: item.summary,
|
||||
achievement: item.kpiCapacity.kpiCapacityDetails,
|
||||
}));
|
||||
|
||||
return new HttpSuccess({ data: mapData, total });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue