update
This commit is contained in:
@ -74,6 +74,7 @@ export class InpatientRoomController {
|
||||
|
||||
const res_count = query;
|
||||
const res_list = query
|
||||
.leftJoinAndSelect("InpatientRoom.room", "room")
|
||||
.orderBy("InpatientRoom." + param.order_field, param.order_direction)
|
||||
.offset(offset)
|
||||
.limit(limit);
|
||||
@ -165,7 +166,11 @@ export class InpatientRoomController {
|
||||
|
||||
let param: any = await schema.validateAsync(req.params);
|
||||
|
||||
let data = await InpatientRoomModel.list({ id: param.id }).then((q) => q.getOne());
|
||||
let data = await InpatientRoomModel.list({ id: param.id }).then((q) =>
|
||||
q //
|
||||
.leftJoinAndSelect("InpatientRoom.room", "room")
|
||||
.getOne(),
|
||||
);
|
||||
|
||||
if (!data) throw { message: "Inpatient Room " + Language.lang.failed_not_found };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user