fix service

This commit is contained in:
avicenan
2026-05-26 18:08:51 +09:00
parent 441fe18f14
commit 6c737d97a1

View File

@ -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);