fixing pharmacy info

This commit is contained in:
Muhammad Rayhan Ardiansyah
2026-03-17 14:29:46 +07:00
parent 7d00506e93
commit 9a715f3f81
3 changed files with 35 additions and 2 deletions

View File

@ -13,7 +13,12 @@ export class PharmacyInfoModel {
whereVal = { ...whereVal, ...CommonHelper.handleQueryFilter(filter, "pharmacy_info").whereVal };
}
var query = repo.createQueryBuilder("pharmacy_info").leftJoinAndSelect("pharmacy_info.default_room", "default_room");
var query = repo.createQueryBuilder("pharmacy_info")
.leftJoinAndSelect("pharmacy_info.default_room", "default_room")
.leftJoinAndSelect("pharmacy_info.munisipiu", "munisipiu")
.leftJoinAndSelect("pharmacy_info.postu_admin", "postu_admin")
.leftJoinAndSelect("pharmacy_info.suco", "suco")
.leftJoinAndSelect("pharmacy_info.aldeia", "aldeia");
if (whereAttr.length != 0) {
query = query.where(whereAttr.join(" and "), whereVal);
}