From c0e179a3e002af36c52354139e05e720786c4f12 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 20 Sep 2018 18:07:00 +0800 Subject: [PATCH] - fix bug placeBind := &model.SkuNamePlaceBind{} --- business/jxstore/cms/sku.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index e556f951a..9c4971886 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -373,7 +373,7 @@ func UpdateSkuName(nameID int, payload map[string]interface{}, userName string) if places, ok := payload["places"].([]interface{}); ok { if _, err = dao.ExecuteSQL(db, "DELETE FROM sku_name_place_bind WHERE name_id = ?", nameID); err == nil { for _, placeCode := range places { - placeBind := model.SkuNamePlaceBind{} + placeBind := &model.SkuNamePlaceBind{} placeBind.PlaceCode = int(utils.Interface2Int64WithDefault(placeCode, 0)) if placeBind.PlaceCode > 0 { dao.WrapAddIDCULEntity(placeBind, userName)