zhangqian
2024-03-18 c0c3aa336e22aa7be4c90018c19124745cfcd091
发货完成判断
1个文件已修改
3 ■■■■■ 已修改文件
proto/product_inventory/server.go 3 ●●●●● 补丁 | 查看 | 原始文档 | 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