1
This commit is contained in:
@@ -705,9 +705,10 @@ 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
|
||||
pageInfo *model.PagedInfo
|
||||
acts []*model.ActMtwmVendor
|
||||
)
|
||||
pageInfo := &model.PagedInfo{}
|
||||
|
||||
sql := `
|
||||
SELECT SQL_CALC_FOUND_ROWS b.name store_name ,a.*
|
||||
FROM act_mtwm_vendor a
|
||||
@@ -753,10 +754,7 @@ func GetActMtwmVendorPage(db *DaoDB, storeIDs, skuIDs []int, keyword string, beg
|
||||
}()
|
||||
|
||||
if err = GetRowsTx(txDB, &acts, sql, sqlParams...); err == nil && len(acts) != 0 {
|
||||
globals.SugarLogger.Debugf("len := %d", len(acts))
|
||||
aa := GetLastTotalRowCount2(db, txDB)
|
||||
globals.SugarLogger.Debugf("aa := %d", aa)
|
||||
pageInfo.TotalCount = aa
|
||||
pageInfo.TotalCount = GetLastTotalRowCount2(db, txDB)
|
||||
pageInfo.Data = acts
|
||||
}
|
||||
Commit(db, txDB)
|
||||
|
||||
Reference in New Issue
Block a user