From 1208b4357ef1de58c9b6ceb496cc60cac998e48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 31 Mar 2021 15:53:06 +0800 Subject: [PATCH] aa --- business/jxstore/cms/store_sku.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 38c53fb5b..52f58e412 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -741,12 +741,12 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, upcs []str sqlParams2 = append(sqlParams2, sqlParamsPage) var storeNameList []*tStoreNameBind beginTime := time.Now() - if err = dao.GetRows(db, &storeNameList, sql2, sqlParams2...); err != nil { + if err = dao.GetRowsTx(txDB, &storeNameList, sql2, sqlParams2...); err != nil { dao.Rollback(db, txDB) return nil, err } globals.SugarLogger.Debugf("GetStoresSkusNew get result1:%v", time.Now().Sub(beginTime)) - skuNamesInfo.TotalCount = dao.GetLastTotalRowCount(db) + skuNamesInfo.TotalCount = dao.GetLastTotalRowCount2(db, txDB) sql += " AND (1 = 0" for _, v := range storeNameList { sql += " OR (t1.id = ? AND t3.id = ?)"