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)

View File

@@ -449,7 +449,7 @@ func (c *ActController) GetVendorPopActDetail() {
// @Title 查询美团平台活动 // @Title 查询美团平台活动
// @Description 查询美团平台活动 // @Description 查询美团平台活动
// @Param token header string true "认证token" // @Param token header string true "认证token"
// @Param storeIDs query string false "门店IDs" // @Param storeIDs query string false "门店IDs"
// @Param skuIDs query string false "skuIDs" // @Param skuIDs query string false "skuIDs"
// @Param keyword query string false "关键字" // @Param keyword query string false "关键字"