@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-base",
3
- "version": "8.0.41",
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": "68ed47dc717d534edbee63adf16d2a84df73f501"
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.productRefId])
41
+ @Index('ix_product_product_ref_id', (product: Product) => [product.productRef])
42
42
  @ObjectType()
43
43
  export class Product {
44
44
  @PrimaryGeneratedColumn('uuid')