liujiandao
2023-11-13 eb3a28fa790ee41bb3755b2b4aa789996c4365ca
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: "已出库",
   })