From eb3a28fa790ee41bb3755b2b4aa789996c4365ca Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期一, 13 十一月 2023 10:30:38 +0800
Subject: [PATCH] 在库与可用查询修改

---
 controllers/operation.go |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/controllers/operation.go b/controllers/operation.go
index a541b4d..08031a9 100644
--- a/controllers/operation.go
+++ b/controllers/operation.go
@@ -1,6 +1,7 @@
 package controllers
 
 import (
+	"context"
 	"encoding/json"
 	"errors"
 	"fmt"
@@ -684,7 +685,7 @@
 		return
 	}
 	if operation.SourceNumber != "" {
-		go UpdateSalesDetailStatus(c, operation.SourceNumber)
+		go UpdateSalesDetailStatus(operation.SourceNumber)
 	}
 	util.ResponseFormat(c, code.Success, "鎿嶄綔鎴愬姛")
 }
@@ -706,9 +707,9 @@
 	}
 }
 
-func UpdateSalesDetailStatus(ctx *gin.Context, number string) {
+func UpdateSalesDetailStatus(number string) {
 	client := product_inventory.NewProductInventoryServiceClient(ProductInventoryServiceConn)
-	_, err := client.UpdateSalesDetailStatus(ctx, &product_inventory.UpdateSalesDetailStatusRequest{
+	_, err := client.UpdateSalesDetailStatus(context.Background(), &product_inventory.UpdateSalesDetailStatusRequest{
 		Number:            number,
 		SalesDetailStatus: "宸插嚭搴�",
 	})

--
Gitblit v1.8.0