แก้รายงานสรุปจำนวนผลงานการประเมิน

This commit is contained in:
Bright 2025-03-18 11:32:47 +07:00
parent ce25a2ede1
commit bbf28f9d2d
3 changed files with 39 additions and 3 deletions

View file

@ -444,7 +444,16 @@ export class EvaluationController {
} }
const before = null; const before = null;
await new CallAPI()
.GetData(request, `/org/profile/keycloak/commander/${request.user.sub}`)
.then(async (x) => {
evaluation.rootDnaId = x.rootDnaId;
evaluation.child1DnaId = x.child1DnaId;
evaluation.child2DnaId = x.child2DnaId;
evaluation.child3DnaId = x.child3DnaId;
evaluation.child4DnaId = x.child4DnaId;
})
.catch();
evaluation.step = "PREPARE_DOC_V1"; evaluation.step = "PREPARE_DOC_V1";
evaluation.type = requestBody.type == "EXPERT" ? "EXPERT" : "SPECIAL_EXPERT"; evaluation.type = requestBody.type == "EXPERT" ? "EXPERT" : "SPECIAL_EXPERT";
evaluation.fullName = requestBody.fullName; evaluation.fullName = requestBody.fullName;

View file

@ -76,8 +76,7 @@ export class ReoportController {
.andWhere(yearInBE && yearInBE != null ? "YEAR(createdAt) = :year" : "1=1", { .andWhere(yearInBE && yearInBE != null ? "YEAR(createdAt) = :year" : "1=1", {
year: yearInBE, year: yearInBE,
}) })
.andWhere("evaluation.orgRootId = :rootId", { rootId: rootId }) .andWhere("evaluation.rootDnaId = :rootId", { rootId: rootId })
// .andWhere("evaluation.rootDnaId = :rootId", { rootId: rootId })
.andWhere("evaluation.step = :step", { step: "DONE" }) .andWhere("evaluation.step = :step", { step: "DONE" })
.getMany(); .getMany();

View file

@ -526,6 +526,34 @@ export class CreateEvaluationExpertise {
@Column() @Column()
oc?: string | null; oc?: string | null;
@Column()
citizenId?: string | null;
@Column()
prefix?: string | null;
@Column()
fullName?: string | null;
@Column()
position?: string | null;
@Column()
salary?: string | null;
@Column()
positionLevel?: string | null;
@Column()
posNo?: string | null;
@Column()
birthDate?: string | null;
@Column()
govAge?: string | null;
} }
export type UpdateEvaluation = Partial<Evaluation>; export type UpdateEvaluation = Partial<Evaluation>;