zhangqian
2024-03-19 16fd3076723f820aa079ff2863f7ab054ab4d0a1
fix空指针
2个文件已修改
6 ■■■■■ 已修改文件
proto/product_inventory/server.go 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/operation.go 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
proto/product_inventory/server.go
@@ -435,6 +435,9 @@
            } else {
                locationSendAmount = productAmount
            }
            if locationSendAmount.LessThanOrEqual(decimal.Zero) {
                continue
            }
            productInfoList = append(productInfoList, &service.ProductInfo{
                ProductID: productNumber,
                Amount:    locationSendAmount,
service/operation.go
@@ -45,6 +45,9 @@
                FromLocationID: output.LocationID,
            })
        }
        if opTypeMap[output.WarehouseID] == nil {
            continue
        }
        operation := &models.Operation{
            Id:                0,
            Number:            "",