liujiandao
2024-03-23 9dfda3355efbbee2a148fe6d7031535a31a57769
api/v1/purchase/purchase.go
@@ -461,7 +461,7 @@
      ppc.SurplusReceiveAmount = products.Amount
      list = append(list, &ppc)
   }
   err = service.NewPurchaseService().SavePurchaseProductConfirm(list)
   err = service.NewPurchaseService().SavePurchaseProductConfirm(list, true)
   if err != nil {
      global.GVA_LOG.Error("提交失败!", zap.Error(err))
@@ -519,7 +519,7 @@
   }
   server := service.NewPurchaseService()
   err = server.SavePurchaseProductConfirm(list)
   err = server.SavePurchaseProductConfirm(list, false)
   if err != nil {
      global.GVA_LOG.Error("保存失败!", zap.Error(err))
@@ -648,8 +648,8 @@
// @Security  ApiKeyAuth
// @accept    application/json
// @Produce   application/json
// @Param     data  body     purchaserequest.SaveQualityInspectionInfo   true  "参数"
// @Success   200   {object}  response.Response{data=[]purchase.PurchaseProductConfirm}  "获取确认信息"
// @Param     data  body     purchaserequest.PurchaseProductConfirmInfo   true  "参数"
// @Success   200   {object}  response.Response{}  "获取确认信息"
// @Router    /purchase/allProductInWarehouse [post]
func (e *PurchaseApi) AllProductInWarehouse(c *gin.Context) {
   var params []*purchaserequest.PurchaseProductConfirmInfo
@@ -666,7 +666,7 @@
   }
   server := service.NewPurchaseService()
   err = server.SavePurchaseProductConfirm(list)
   err = server.SavePurchaseProductConfirm(list, false)
   if err != nil {
      global.GVA_LOG.Error("保存失败!", zap.Error(err))