fix service
This commit is contained in:
@ -18,7 +18,7 @@ export class ServiceModel {
|
||||
const filterResult = CommonHelper.handleFilter({
|
||||
filter: JSON.stringify({ any: filterAny }),
|
||||
col_any_eq: [],
|
||||
col_any_like: ["name", "serviceType.name"],
|
||||
col_any_like: ["name", "service_type.name"],
|
||||
});
|
||||
|
||||
if (filterResult.whereAttr && filterResult.whereAttr !== "") {
|
||||
@ -29,7 +29,7 @@ export class ServiceModel {
|
||||
|
||||
var query = repo
|
||||
.createQueryBuilder("Service")
|
||||
.leftJoinAndSelect("Service.serviceType", "serviceType")
|
||||
.leftJoinAndSelect("Service.serviceType", "service_type")
|
||||
|
||||
if (whereAttr.length != 0) {
|
||||
query = query.where(whereAttr.join(" and "), whereVal);
|
||||
|
||||
Reference in New Issue
Block a user