This commit is contained in:
AdisakKanthawilang 2024-12-13 17:55:03 +07:00
parent 94134355fa
commit 1623febe48

View file

@ -88,7 +88,7 @@ export class ReportController extends Controller {
TIMESTAMPDIFF(YEAR, current_holder.birthDate, CURDATE()) >= :minAge
AND TIMESTAMPDIFF(YEAR, current_holder.birthDate, CURDATE()) <= :maxAge
`, { minAge, maxAge })
.orderBy("posType.posTypeaName","ASC")
.orderBy("posType.posTypeName","ASC")
.getMany();
if(!rawdataProfile){
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ");
@ -189,6 +189,7 @@ export class ReportController extends Controller {
TIMESTAMPDIFF(YEAR, current_holder.birthDate, CURDATE()) >= :minAge
AND TIMESTAMPDIFF(YEAR, current_holder.birthDate, CURDATE()) <= :maxAge
`, { minAge, maxAge })
.orderBy("posType.posTypeName","ASC")
.getMany();
if(!rawdataProfile){
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ");