fix
liujiandao
2024-04-15 5b6ceeedade5efcccdb7ff6fd23fb203f409bf52
fix
1个文件已修改
4 ■■■■ 已修改文件
controllers/location_product_amount.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/location_product_amount.go
@@ -332,6 +332,10 @@
    }
    first, err := models.NewLocationProductAmountSearch().SetLocationId(params.LocationId).SetProductId(params.ProductId).First()
    if err != nil {
        if err == gorm.ErrRecordNotFound {
            util.ResponseFormat(c, code.Success, nil)
            return
        }
        util.ResponseFormat(c, code.RequestParamError, err.Error())
        return
    }