@things-factory/product-base 8.0.41 → 8.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-server/service/index.d.ts +2 -2
- package/dist-server/service/product/index.d.ts +1 -1
- package/dist-server/service/product/product-query.js +3 -1
- package/dist-server/service/product/product-query.js.map +1 -1
- package/dist-server/service/product/product.js +1 -1
- package/dist-server/service/product/product.js.map +1 -1
- package/dist-server/service/product-bundle/index.d.ts +1 -1
- package/dist-server/service/product-bundle-setting/index.d.ts +1 -1
- package/dist-server/service/product-detail/index.d.ts +1 -1
- package/dist-server/service/product-detail-bizplace-setting/index.d.ts +1 -1
- package/dist-server/service/product-set/index.d.ts +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/server/service/product/product-query.ts +4 -1
- package/server/service/product/product.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/product-base",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.43",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@things-factory/env": "^8.0.37",
|
|
29
29
|
"@things-factory/routing-base": "^8.0.41"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "f2af0dab8e8f97b5e82642b0afe7c0eec6da97a6"
|
|
32
32
|
}
|
|
@@ -296,6 +296,9 @@ function buildCustomConditions(params, context, bizplaces): SelectQueryBuilder<P
|
|
|
296
296
|
const productFilters = params.filters.find(x => x.name == 'product_info')
|
|
297
297
|
const productFilterColumns = ['sku', 'brandSku', 'name', 'description', 'brand', 'subBrand', 'id']
|
|
298
298
|
|
|
299
|
+
// sap코드는 라이크 검색
|
|
300
|
+
params.filters = params.filters.map(x => (x.name == 'brandSku' ? { ...x, operator: 'i_like' } : x))
|
|
301
|
+
|
|
299
302
|
try {
|
|
300
303
|
params.filters = [
|
|
301
304
|
...params.filters.filter(x => ['product_info', 'bizplace', 'bizplaceId', 'deleted'].indexOf(x.name) == -1),
|
|
@@ -312,7 +315,7 @@ function buildCustomConditions(params, context, bizplaces): SelectQueryBuilder<P
|
|
|
312
315
|
alias: 'Product',
|
|
313
316
|
params,
|
|
314
317
|
domain: context.domain,
|
|
315
|
-
searchables: ['sku', 'name', 'description']
|
|
318
|
+
searchables: ['sku', 'name', 'description', 'brandSku']
|
|
316
319
|
})
|
|
317
320
|
|
|
318
321
|
if (productFilters) {
|
|
@@ -38,7 +38,7 @@ export enum pickStrategy {
|
|
|
38
38
|
{ unique: true }
|
|
39
39
|
)
|
|
40
40
|
@Index('ix_product_1', (product: Product) => [product.bizplace])
|
|
41
|
-
@Index('ix_product_product_ref_id', (product: Product) => [product.
|
|
41
|
+
@Index('ix_product_product_ref_id', (product: Product) => [product.productRef])
|
|
42
42
|
@ObjectType()
|
|
43
43
|
export class Product {
|
|
44
44
|
@PrimaryGeneratedColumn('uuid')
|