递增量

parent 1e9d1d57
Showing with 18 additions and 2 deletions
......@@ -130,8 +130,24 @@ func (qs *ZiyingService) ZyGoodsDetail(ctx *gin.Context, goodsIds []string, ch c
A.Set("packing", gjson.Get(info, "packing").Int()) //
A.Set("goods_unit", gjson.Get(info, "goods_unit").Int()) //
A.Set("goods_brief", gjson.Get(info, "goods_brief").String()) //
A.Set("moq", gjson.Get(info, "moq").Int()) //
A.Set("mpq", gjson.Get(info, "mpq").Int()) //
moq := gjson.Get(info, "moq").Int()
mpq := gjson.Get(info, "mpq").Int()
//自营递增量
Multiple := gjson.Get(info, "multiple").Int()
if Multiple > 0 {
Multiple = Multiple
} else {
if mpq > moq {
Multiple = moq
} else {
Multiple = mpq
}
}
A.Set("moq", moq) //
A.Set("mpq", mpq) //
A.Set("multiple", Multiple) //
A.Set("update_time", gjson.Get(info, "update_time").Int()) //
A.Set("sku_name", strings.Trim(gjson.Get(info, "sku_name").String(), " ")) //
......
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