fix service
This commit is contained in:
@ -56,6 +56,7 @@ export class ServiceController {
|
||||
const res_count = query;
|
||||
const res_list = query
|
||||
.orderBy("Service." + param.order_field, param.order_direction)
|
||||
.leftJoinAndSelect("Service.serviceType", "serviceType")
|
||||
.offset(offset)
|
||||
.limit(limit);
|
||||
|
||||
|
||||
@ -29,7 +29,6 @@ export class ServiceModel {
|
||||
|
||||
var query = repo
|
||||
.createQueryBuilder("Service")
|
||||
.leftJoinAndSelect("Service.serviceType", "serviceType")
|
||||
|
||||
if (whereAttr.length != 0) {
|
||||
query = query.where(whereAttr.join(" and "), whereVal);
|
||||
|
||||
Reference in New Issue
Block a user