First(&promotionGoods,"goods_id = ? AND start_time <= ? AND end_time >= ?",v.GoodsID,now,now)
ifpromotionGoods.ID>0{
varpromotionSkupromotion.Sku
dbc.DB.Select("SUM(inventory) AS inventory, SUM(sales_volume) AS sales_volume,discount_price,commission").
dbc.DB.Select("SUM(inventory) AS inventory, SUM(sales_volume) AS sales_volume,min(discount_price) as discount_price,min(discount_price) as discount_price").