From 9dfeffc8ccbcd006038aeb80554fd291f11ef774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 30 Jul 2020 08:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A2=E5=BC=95=E6=B2=A1=E5=BB=BA=E4=B8=8A?= =?UTF-8?q?=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/tempop/tempop.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 69ca22e15..60eaba53a 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1585,12 +1585,13 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { // fmt.Println("addList2", addList) // fmt.Println("updateList2", utils.Format4Output(updateList, false)) // fmt.Println("deleteList2", deleteList) + db := dao.GetDB() storeIDs := []int{667402, 666913, 666864, 666858, 666854, 666853, 666850, 666844} var actStoreSkuParam []*act.ActStoreSkuParam for _, storeID := range storeIDs { - acts, _ := dao.QueryActs(dao.GetDB(), 0, 0, 50, -1, "", -1, []int{1}, []int{0, 3, 4}, nil, storeID, nil, 0, utils.ZeroTimeValue, utils.ZeroTimeValue, utils.ZeroTimeValue, utils.ZeroTimeValue) + acts, _ := dao.QueryActs(db, 0, 0, 50, -1, "", -1, []int{1}, []int{0, 3, 4}, nil, storeID, nil, 0, utils.ZeroTimeValue, utils.ZeroTimeValue, utils.Str2Time("2020-05-30 00:00:00"), utils.Str2Time("2020-07-30 00:00:00")) for _, v := range acts.Data { - _, actStoreSkus, _ := dao.GetActStoreSkuVendorList(dao.GetDB(), v.ID, nil, nil, nil, "", 0, 99999) + _, actStoreSkus, _ := dao.GetActStoreSkuVendorList(db, v.ID, nil, nil, nil, "", 0, 99999) for _, actStoreSku := range actStoreSkus { if actStoreSku.StoreID == storeID { aa := &act.ActStoreSkuParam{} @@ -1600,7 +1601,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { } } fmt.Println("actStoreSkuParam", utils.Format4Output(actStoreSkuParam, false)) - // act.DeleteActStoreSkuBind(ctx, dao.GetDB(), v.ID, actStoreSkuParam) + // act.DeleteActStoreSkuBind(ctx, db, v.ID, actStoreSkuParam) return err }