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 = ?)"