Fix Invalid รายการประเมินผลการปฏิบัติราชการระดับบุคคล (KPI) ไม่แสดงตามสิทธิ์ #19

This commit is contained in:
Bright 2025-06-19 10:30:55 +07:00
parent 5c1e691424
commit 08a9f755c7
2 changed files with 12 additions and 2 deletions

View file

@ -377,8 +377,8 @@ export class KpiUserDevelopmentController extends Controller {
.andWhere(
_data.root != undefined && _data.root != null
? _data.root[0] != null
? `kpiUserEvaluation.rootDnaId IN (:...root)`
: `kpiUserEvaluation.rootDnaId is null`
? `kpiUserEvaluation.orgDnaId IN (:...root)`
: `kpiUserEvaluation.orgDnaId is null`
: "1=1",
{
root: _data.root,

View file

@ -607,6 +607,11 @@ export class KpiUserEvaluationController extends Controller {
kpiUserEvaluation.child3Id = x.child3Id;
kpiUserEvaluation.child4 = x.child4;
kpiUserEvaluation.child4Id = x.child4Id;
kpiUserEvaluation.orgDnaId = x.rootDnaId;
kpiUserEvaluation.child1DnaId = x.child1DnaId;
kpiUserEvaluation.child2DnaId = x.child2DnaId;
kpiUserEvaluation.child3DnaId = x.child3DnaId;
kpiUserEvaluation.child4DnaId = x.child4DnaId;
isProbation = x.isProbation;
})
.catch(() => {
@ -635,6 +640,11 @@ export class KpiUserEvaluationController extends Controller {
kpiUserEvaluation.child3Id = x.child3Id;
kpiUserEvaluation.child4 = x.child4;
kpiUserEvaluation.child4Id = x.child4Id;
kpiUserEvaluation.orgDnaId = x.rootDnaId;
kpiUserEvaluation.child1DnaId = x.child1DnaId;
kpiUserEvaluation.child2DnaId = x.child2DnaId;
kpiUserEvaluation.child3DnaId = x.child3DnaId;
kpiUserEvaluation.child4DnaId = x.child4DnaId;
isProbation = x.isProbation;
})
.catch(() => {