Commit 03792ca1 by huangchengyi

1.0

parent 02ea1cbe
......@@ -115,9 +115,9 @@ func (t *CommonLyService) writeSkuInfo(skuInfo *model.LyClearGoodsList,skuId str
SpuId: spuId,
Encoded: "",
Moq: skuInfo.Moq,
Mpq: skuInfo.Increment,
OldGoodsId: 0,
GoodsType: 1,
Mpq: skuInfo.Increment,
OldGoodsId: 0,
GoodsType: 1,
GoodsStatus: 1,
BatchSn:"",
Stock:skuInfo.Stock,
......@@ -138,7 +138,7 @@ func (t *CommonLyService) writeSkuInfo(skuInfo *model.LyClearGoodsList,skuId str
//todo 如果是digikey新增,需要插入原始映射表
if t.supplierId == 7 {
//redisWrite.Do("HSET",SKU_RAW_MAP,skuKey,skuId)
redisWrite.Do("HSET",t.SKU_RAW_MAP,skuKey,skuId)
}
}
......
......@@ -9,12 +9,6 @@ import (
//mouser外链网址
const Mouser_api_url string = "https://api.mouser.com/api/v1/search/partnumber?apiKey=0a11fa6f-ddcb-4ddf-9947-e42b2f3b4723"
//单例
type MouserServiceImpl struct{}
func NewMouserServiceImpl() *MouserServiceImpl {
return &MouserServiceImpl{}
}
//mouser请求外链
func OutLink(goodsName *string,flag string) map[string]*model.LyClearGoodsList {
var result string;
......
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