This commit is contained in:
邹宗楠
2023-07-17 15:14:49 +08:00
parent 8338413166
commit e4bd1658cc
2 changed files with 4 additions and 3 deletions

View File

@@ -751,8 +751,9 @@ func GetActMtwmVendorPage(db *DaoDB, storeIDs, skuIDs []int, keyword string, beg
panic(r) panic(r)
} }
}() }()
if err = GetRowsTx(txDB, &acts, sql, sqlParams...); err == nil { if err = GetRowsTx(txDB, &acts, sql, sqlParams...); err == nil && len(acts) != 0 {
pageInfo.TotalCount = GetLastTotalRowCount2(db, txDB) aa := GetLastTotalRowCount2(db, txDB)
pageInfo.TotalCount = aa
pageInfo.Data = acts pageInfo.Data = acts
} }
Commit(db, txDB) Commit(db, txDB)