add task apis
This commit is contained in:
@@ -117,12 +117,12 @@ func (l *WebCreateOneLogic) WebCreateOne(in *order.CreateOrderOneRequest) (*orde
|
||||
OrderSn: data.OrderSn,
|
||||
ProductId: int(in.ProductId),
|
||||
ProductName: productInfo.Name,
|
||||
Price: productInfo.Price,
|
||||
Price: utils.RoundFloat(productInfo.Price),
|
||||
Number: int(in.Num),
|
||||
}
|
||||
|
||||
data.ProductIds = strconv.FormatInt(in.ProductId, utils.NumberTen)
|
||||
data.TotalPrice = float64(in.Num) * productInfo.Price
|
||||
data.TotalPrice = utils.RoundFloat(float64(in.Num) * productInfo.Price)
|
||||
mobileObj := model.OrderModel{}.Init()
|
||||
|
||||
mobileObj.Begin()
|
||||
|
||||
Reference in New Issue
Block a user