diff --git a/business/model/dao/store_sku.go b/business/model/dao/store_sku.go index 42f83b81c..816c62ac0 100644 --- a/business/model/dao/store_sku.go +++ b/business/model/dao/store_sku.go @@ -1373,7 +1373,7 @@ func GetStoreSkuBindByNameID(db *DaoDB, storeID, nameID, status int) (storeSkuBi func GetPriceReferPrice(db *DaoDB, cityCode int, skuID int, snapDate time.Time) (result *PriceReferSnapshotExt, err error) { var ( pRefer *PriceReferSnapshotExt - priceRefer *PriceReferSnapshotExt + priceRefer = &PriceReferSnapshotExt{} ) sql := ` SELECT a.max_unit_price, a.min_unit_price, a.avg_unit_price, a.mid_unit_price, a.sku_id id, b.spec_quality, c.unit, b.spec_unit