Commit 0e13ae9c by mushishixian

商品名称问题

parent bcd4ffc0
Showing with 2 additions and 1 deletions
...@@ -2,6 +2,7 @@ package service ...@@ -2,6 +2,7 @@ package service
import ( import (
"encoding/json" "encoding/json"
"fmt"
"go_sku_server/model" "go_sku_server/model"
"go_sku_server/pkg/common" "go_sku_server/pkg/common"
"go_sku_server/pkg/gredis" "go_sku_server/pkg/gredis"
...@@ -259,7 +260,7 @@ func (ls *LyService) GetCoefficient(sku model.LySku) model.LySku { ...@@ -259,7 +260,7 @@ func (ls *LyService) GetCoefficient(sku model.LySku) model.LySku {
} }
//存在goods_name的对比吗,为什么,因为系数可以单独针对型号配置,所以要去判断型号 //存在goods_name的对比吗,为什么,因为系数可以单独针对型号配置,所以要去判断型号
//http://footstone.ichunt.net/web/SavePoolCoefficient?id=1 //http://footstone.ichunt.net/web/SavePoolCoefficient?id=1
if brandName != "" && strings.Contains(goodsName, sku.GoodsName) { if goodsName != "" && strings.Contains(goodsName, sku.GoodsName) {
coefficient = ratioInfo coefficient = ratioInfo
hasCoefficient = true hasCoefficient = true
break break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment