fix
zhangqian
2024-03-19 3d07c9591a406eeeb30cf3dd3ec7705eb2213865
fix
1个文件已修改
5 ■■■■■ 已修改文件
proto/product_inventory/server.go 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
proto/product_inventory/server.go
@@ -330,6 +330,7 @@
}
func (s *Server) OrderProductOutput(ctx context.Context, req *OrderProductOutputRequest) (resp *OrderProductOutputResponse, err error) {
    resp = new(OrderProductOutputResponse)
    if req.OrderNumber == "" || len(req.Products) == 0 {
        return nil, errors.New("参数缺失")
    }
@@ -456,10 +457,10 @@
    err = service.AddOutputOperations(outputInfoList)
    if err != nil {
        logx.Errorf("OrderProductOutput AddOutputOperations err:%v", err)
        return nil, err
    }
    resp.Code = 1
    resp.Msg = "success"
    return nil, nil
    return resp, nil
}