diff --git a/business/model/dao/act.go b/business/model/dao/act.go index 4c5d5842a..cf71bcc2b 100644 --- a/business/model/dao/act.go +++ b/business/model/dao/act.go @@ -751,8 +751,9 @@ func GetActMtwmVendorPage(db *DaoDB, storeIDs, skuIDs []int, keyword string, beg panic(r) } }() - if err = GetRowsTx(txDB, &acts, sql, sqlParams...); err == nil { - pageInfo.TotalCount = GetLastTotalRowCount2(db, txDB) + if err = GetRowsTx(txDB, &acts, sql, sqlParams...); err == nil && len(acts) != 0 { + aa := GetLastTotalRowCount2(db, txDB) + pageInfo.TotalCount = aa pageInfo.Data = acts } Commit(db, txDB) diff --git a/controllers/act.go b/controllers/act.go index ad3f93222..fda9eec9e 100644 --- a/controllers/act.go +++ b/controllers/act.go @@ -449,7 +449,7 @@ func (c *ActController) GetVendorPopActDetail() { // @Title 查询美团平台活动 // @Description 查询美团平台活动 -// @Param token header string true "认证token" +// @Param token header string true "认证token" // @Param storeIDs query string false "门店IDs" // @Param skuIDs query string false "skuIDs" // @Param keyword query string false "关键字"