update: patient_guarantor.ts add faretype relation and update swagger builder

This commit is contained in:
wayanrivan
2026-03-30 09:40:37 +07:00
parent dd6af41733
commit af4e6b7294
3 changed files with 7 additions and 2 deletions

View File

@ -27,7 +27,7 @@ export class PatientGuarantorModel {
}
}
var query = repo.createQueryBuilder("patient_guarantor").leftJoinAndSelect("patient_guarantor.patient_group", "patient_group");
var query = repo.createQueryBuilder("patient_guarantor").leftJoinAndSelect("patient_guarantor.patient_group", "patient_group").leftJoinAndSelect("patient_guarantor.faretype", "faretype");
if (whereAttr.length != 0) {
query = query.where(whereAttr.join(" and "), whereVal);
}