fix word "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว"
This commit is contained in:
parent
8ebd30a63d
commit
082ce90dcd
2 changed files with 3 additions and 3 deletions
|
|
@ -202,7 +202,7 @@ export class OrgChild1Controller {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (chkCode != null) {
|
if (chkCode != null) {
|
||||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว");
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว");
|
||||||
}
|
}
|
||||||
child1.lastUpdateUserId = request.user.sub;
|
child1.lastUpdateUserId = request.user.sub;
|
||||||
child1.lastUpdateFullName = request.user.name;
|
child1.lastUpdateFullName = request.user.name;
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ export class OrgRootController extends Controller {
|
||||||
where: { orgRevisionId: requestBody.orgRevisionId, orgRootCode: requestBody.orgRootCode },
|
where: { orgRevisionId: requestBody.orgRevisionId, orgRootCode: requestBody.orgRootCode },
|
||||||
});
|
});
|
||||||
if (chkCode != null) {
|
if (chkCode != null) {
|
||||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว");
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว");
|
||||||
}
|
}
|
||||||
|
|
||||||
const orgRevision = await this.orgRevisionRepository.findOne({
|
const orgRevision = await this.orgRevisionRepository.findOne({
|
||||||
|
|
@ -190,7 +190,7 @@ export class OrgRootController extends Controller {
|
||||||
where: { orgRevisionId: requestBody.orgRevisionId, orgRootCode: requestBody.orgRootCode },
|
where: { orgRevisionId: requestBody.orgRevisionId, orgRootCode: requestBody.orgRootCode },
|
||||||
});
|
});
|
||||||
if (chkCode?.id != id && chkCode != null) {
|
if (chkCode?.id != id && chkCode != null) {
|
||||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสหน่วยงานนี้มีอยู่ในระบบแล้ว");
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "รหัสส่วนราชการนี้มีอยู่ในระบบแล้ว");
|
||||||
}
|
}
|
||||||
|
|
||||||
const orgRoot = await this.orgRootRepository.findOne({ where: { id } });
|
const orgRoot = await this.orgRootRepository.findOne({ where: { id } });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue