From 0f5ae6675065a62772b80a9f1a78bd7132087158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 18 Jun 2020 17:02:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=9C=E5=9B=AD=E7=9A=84=E6=9E=9C=E5=88=87?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E6=B7=BB=E5=8A=A0=E5=8A=A0=E5=B7=A5=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/ebai/store_sku2.go | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/business/partner/purchase/ebai/store_sku2.go b/business/partner/purchase/ebai/store_sku2.go index ed7b1287d..22b40fc7a 100644 --- a/business/partner/purchase/ebai/store_sku2.go +++ b/business/partner/purchase/ebai/store_sku2.go @@ -28,6 +28,14 @@ var ( 175: "赠品专区", 18: "烧烤吧台", } + + //果园果切的饿百分类ID + gygqVendorCatID = map[int]int{ + 201227732: 1, + 201220933: 1, + 201223525: 1, + 201220334: 1, + } ) func (p *PurchaseHandler) GetStoreSkusBatchSize(funcID int) (batchSize int) { @@ -360,6 +368,21 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE params["cat3_id"] = storeSku.ExdCategoryThirdID params["category_id"] = utils.Str2Int64WithDefault(storeSku.VendorCatID, 0) } + //证明是果园的几个果切分类,需要填加工服务 + if gygqVendorCatID[int(storeSku.VendorVendorCatID)] == 1 { + params["process_type"] = model.YES + processDetail := []map[string]interface{}{ + map[string]interface{}{ + "type": "去皮", + "time": 2, + }, + map[string]interface{}{ + "type": "不加工", + "time": 0, + }, + } + params["process_detail"] = processDetail + } if storeSku.DescImg != "" { params["rtf"] = storeSku.DescImg }