Merge branch 'dev'

This commit is contained in:
wucongxing8150 2024-06-21 13:33:44 +08:00
commit 7f76324919

View File

@ -1638,7 +1638,7 @@ func (r *ExportService) OrderProduct(d []*model.OrderProduct) (string, error) {
var products []string
for _, v := range orderProductItems {
amount := fmt.Sprintf("%d", v.Amount)
productPrice := fmt.Sprintf("%d", v.ProductPrice)
productPrice := fmt.Sprintf("%.2f", v.ProductPrice)
product := v.ProductName + "(N:" + amount + " " + "P:" + productPrice + ")"
products = append(products, product)