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