From 5c3b42bb561c1731c0922d74f4ffc089f6b24268 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 18 八月 2023 19:16:00 +0800 Subject: [PATCH] fix --- service/salesDetails.go | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/service/salesDetails.go b/service/salesDetails.go index 73ff94b..d925e9d 100644 --- a/service/salesDetails.go +++ b/service/salesDetails.go @@ -88,17 +88,17 @@ if err != nil { return err } - var rel []*model.SalesDetailsProduct - for _, p := range newProducts { - rel = append(rel, &model.SalesDetailsProduct{ - SalesDetailsId: salesDetails.Id, - ProductId: p.Id, - }) - } - err = model.NewSalesDetailsProductSearch().CreateBatch(rel) - if err != nil { - return err - } + //var rel []*model.SalesDetailsProduct + //for _, p := range newProducts { + // rel = append(rel, &model.SalesDetailsProduct{ + // SalesDetailsId: salesDetails.Id, + // ProductId: p.Id, + // }) + //} + //err = model.NewSalesDetailsProductSearch().CreateBatch(rel) + //if err != nil { + // return err + //} } return nil -- Gitblit v1.8.0