From 9ff43bd619c236e2a58275631a3eca69f9e3cbf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Sun, 26 Apr 2020 13:43:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=8F=9C=E5=B8=82=E7=89=A9?= =?UTF-8?q?=E6=96=99=E5=88=B0=E6=9E=9C=E5=9B=AD=E6=9B=B4=E6=96=B0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store_sku.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 857326b04..7a943c357 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -4456,19 +4456,21 @@ func SyncMatterC4ToGy(ctx *jxcontext.Context, isContinueWhenError, isAsync bool) } }() if v != nil { - fmt.Println("test111111111111111111111111111111", utils.Format4Output(v, false)) dao.WrapAddIDCULEntity(v, ctx.GetUserName()) - if _, err = dao.UpdateEntity(db, v, "SpecQuality", "SpecUnit", "EclpID"); err != nil { + if num1, err := dao.UpdateEntity(db, v, "SpecQuality", "SpecUnit", "EclpID"); err != nil { dao.Rollback(db) return retVal, err + } else { + fmt.Println("test11111111111111111111111111111", num1) } } if skuName != nil { - fmt.Println("test222222222222222222222222222222", utils.Format4Output(skuName, false)) dao.WrapAddIDCULEntity(skuName, ctx.GetUserName()) - if _, err = dao.UpdateEntity(db, skuName, "Name", "Img", "Img2", "DescImg", "Unit", "CategoryID", "Price"); err != nil { + if num2, err := dao.UpdateEntity(db, skuName, "Name", "Img", "Img2", "DescImg", "Unit", "CategoryID", "Price"); err != nil { dao.Rollback(db) return retVal, err + } else { + fmt.Println("test22222222222222222222222222222", num2) } } sql = `