proto/product_inventory/server.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
proto/product_inventory/server.go
@@ -426,6 +426,9 @@ productInfoList := make([]*service.ProductInfo, 0) for productNumber, productAmount := range locationProductAmounts { remainAmount := productNeedSendAmount[productNumber].Sub(productHasSendAmount[productNumber]) if remainAmount.LessThanOrEqual(decimal.Zero) { continue } var locationSendAmount decimal.Decimal if productAmount.GreaterThanOrEqual(remainAmount) { locationSendAmount = remainAmount