upd
This commit is contained in:
@ -13,7 +13,9 @@ export class DoctorScheduleModel {
|
||||
whereVal = { ...whereVal, ...CommonHelper.handleQueryFilter(filter).whereVal };
|
||||
}
|
||||
|
||||
var query = repo.createQueryBuilder("DoctorSchedule").leftJoinAndSelect("DoctorSchedule.room", "Room");
|
||||
var query = repo.createQueryBuilder("DoctorSchedule")
|
||||
.leftJoinAndSelect("DoctorSchedule.doctor", "doctor")
|
||||
.leftJoinAndSelect("DoctorSchedule.room", "Room");
|
||||
if (whereAttr.length != 0) {
|
||||
query = query.where(whereAttr.join(" and "), whereVal);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user