| | |
| | | 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)) |
| | |
| | | } |
| | | |
| | | server := service.NewPurchaseService() |
| | | err = server.SavePurchaseProductConfirm(list) |
| | | err = server.SavePurchaseProductConfirm(list, false) |
| | | |
| | | if err != nil { |
| | | global.GVA_LOG.Error("保存失败!", zap.Error(err)) |
| | |
| | | // @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 |
| | |
| | | } |
| | | |
| | | server := service.NewPurchaseService() |
| | | err = server.SavePurchaseProductConfirm(list) |
| | | err = server.SavePurchaseProductConfirm(list, false) |
| | | |
| | | if err != nil { |
| | | global.GVA_LOG.Error("保存失败!", zap.Error(err)) |