Commit 7d1eb42a by huangchengyi

1.0

parent ba9b2e20
Showing with 2 additions and 1 deletions
......@@ -12,6 +12,7 @@ import (
"go_sku_server/pkg/logger"
"go_sku_server/pkg/mysql"
"github.com/gogf/gf/util/gconv"
"math"
"sort"
)
......@@ -171,7 +172,7 @@ func (a *ZyCronService) ZyDiscount(checkGoodsId string) {
}
//处理清库存系数,几个系数符合,往下面算
var ratioPrice float64;
ratioPrice = gconv.Float64(a["cost"]) * gconv.Float64(info["ratio"])
ratioPrice = math.Ceil(gconv.Float64(a["cost"]) * gconv.Float64(info["ratio"])*10000)/10000
//查询立创数据
szlcPriceStr,_ := gredis.String(redisConn.Do("HGET","Self_szlc_price",now_goods_id)) //获取立创价格
......
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