Commit 24c5797f by huangchengyi

1.0

parent ca9fa80e
Showing with 8 additions and 1 deletions
......@@ -39,12 +39,19 @@ var brand_name_all string = config.Get("redis_all.BRAND_NAME_ALL").String() /
*/
func getSkuByGoodsSn(goods_list map[string]*model.LyClearGoodsList,supplier_info *model.SUPPLIER_REDIS_INFO_) map[string]interface{}{
originGoods := make(map[string]interface{},0)
searredis := gredis.Conn("search_read")
defer searredis.Close()
for goods_sn, info := range goods_list {
sn_sku := php2go.Md5(strings.ToLower(goods_sn))
sku_id,_ := gredis.hget(sku_uique_judge,sn_sku) //查询唯一值,反查sku_id
searredis.Do("set","hcttest","dddd")
sku_id,_ := gredis.get(sku_uique_judge,sn_sku) //查询唯一值,反查sku_id
var sku_flag bool = false; //是否新增或者更新db+redis,为true则新增
if sku_id == "" { //为空,先创建sku
......
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