1
This commit is contained in:
@@ -705,7 +705,8 @@ func GetActEbaiVendorSkus(db *DaoDB, storeIDs, skuIDs []int) (actEbaiVendorSku [
|
||||
|
||||
func GetActMtwmVendorPage(db *DaoDB, storeIDs, skuIDs []int, keyword string, beginAt, endAt time.Time, actType, offset, pageSize int) (page *model.PagedInfo, err error) {
|
||||
var (
|
||||
acts []*model.ActMtwmVendor
|
||||
acts []*model.ActMtwmVendor
|
||||
pageInfo *model.PagedInfo
|
||||
)
|
||||
sql := `
|
||||
SELECT SQL_CALC_FOUND_ROWS b.name store_name ,a.*
|
||||
@@ -750,11 +751,11 @@ func GetActMtwmVendorPage(db *DaoDB, storeIDs, skuIDs []int, keyword string, beg
|
||||
}
|
||||
}()
|
||||
if err = GetRowsTx(txDB, &acts, sql, sqlParams...); err == nil {
|
||||
page.TotalCount = GetLastTotalRowCount2(db, txDB)
|
||||
page.Data = acts
|
||||
pageInfo.TotalCount = GetLastTotalRowCount2(db, txDB)
|
||||
pageInfo.Data = acts
|
||||
}
|
||||
Commit(db, txDB)
|
||||
return page, err
|
||||
return pageInfo, err
|
||||
}
|
||||
|
||||
// GetDontHaveSku 获取不存在此商品活动的门店
|
||||
|
||||
Reference in New Issue
Block a user