Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 54s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 54s
This commit is contained in:
commit
3c26bbe513
1 changed files with 6 additions and 2 deletions
|
|
@ -572,7 +572,9 @@ export class ReportController extends Controller {
|
||||||
"AVG(kpiUserEvaluation.summaryPoint) as avgSummaryPoint"
|
"AVG(kpiUserEvaluation.summaryPoint) as avgSummaryPoint"
|
||||||
])
|
])
|
||||||
.getRawMany();
|
.getRawMany();
|
||||||
|
if(!profileEvaluationNowYearIds || profileEvaluationNowYearIds.length === 0){
|
||||||
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลรายงานการประเมินผลฯ ระดับบุคคลของบุคคลนี้");
|
||||||
|
}
|
||||||
// const profileEvaluations = await this.kpiUserEvaluationRepository.find({
|
// const profileEvaluations = await this.kpiUserEvaluationRepository.find({
|
||||||
// relations: ["kpiPeriod"],
|
// relations: ["kpiPeriod"],
|
||||||
// where: { id: In(profileEvaluationNowYearIds.map((evaluation) => evaluation.id)) },
|
// where: { id: In(profileEvaluationNowYearIds.map((evaluation) => evaluation.id)) },
|
||||||
|
|
@ -1500,6 +1502,9 @@ export class ReportController extends Controller {
|
||||||
.groupBy("kpiUserEvaluation.kpiPeriodId")
|
.groupBy("kpiUserEvaluation.kpiPeriodId")
|
||||||
.select("MIN(kpiUserEvaluation.id) as id")
|
.select("MIN(kpiUserEvaluation.id) as id")
|
||||||
.getRawMany();
|
.getRawMany();
|
||||||
|
if(!profileEvaluationIds || profileEvaluationIds.length === 0){
|
||||||
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลรายงานการประเมินผลฯ ระดับบุคคลของบุคคลนี้");
|
||||||
|
}
|
||||||
if (profileEvaluationIds.length > 0) {
|
if (profileEvaluationIds.length > 0) {
|
||||||
userInfo = await this.kpiUserEvaluationRepository.find({
|
userInfo = await this.kpiUserEvaluationRepository.find({
|
||||||
where: {
|
where: {
|
||||||
|
|
@ -1532,7 +1537,6 @@ export class ReportController extends Controller {
|
||||||
const dev20text = "การเรียนรู้จากผู้อื่น (Coach/Mentor/Consulting)";
|
const dev20text = "การเรียนรู้จากผู้อื่น (Coach/Mentor/Consulting)";
|
||||||
const dev70text = "การลงมือปฏิบัติ (โดยผู้บังคับบัญชามอบหมาย)";
|
const dev70text = "การลงมือปฏิบัติ (โดยผู้บังคับบัญชามอบหมาย)";
|
||||||
const combianText = [dev10text, dev20text, dev70text];
|
const combianText = [dev10text, dev20text, dev70text];
|
||||||
|
|
||||||
formattedUserDevelopmentLists = userDevelopmentLists.map(
|
formattedUserDevelopmentLists = userDevelopmentLists.map(
|
||||||
(development: any, index: number) => ({
|
(development: any, index: number) => ({
|
||||||
no: Extension.ToThaiNumber((index + 1).toString()),
|
no: Extension.ToThaiNumber((index + 1).toString()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue