果园的果切分类添加加工服务

This commit is contained in:
苏尹岚
2020-06-18 17:02:21 +08:00
parent 1ce453dee5
commit 0f5ae66750

View File

@@ -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
}