- GetStoreSkus handle zero

This commit is contained in:
gazebo
2018-11-29 17:51:09 +08:00
parent 698e3267a8
commit 891766b55b
2 changed files with 11 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
package controllers
import (
"math"
"time"
"git.rosy.net.cn/baseapi/utils"
@@ -205,6 +206,9 @@ func (c *StoreSkuController) GetStoresSkusSaleInfo() {
if timeList, err = jxutils.BatchStr2Time(params.StFromTime, params.StToTime); err != nil {
return retVal, "", err
}
if params.MapData["stToToCount"] == nil {
params.StToToCount = math.MaxInt32
}
retVal, err = cms.GetStoresSkusSaleInfo(params.Ctx, storeIDs, skuIDs, timeList[0], timeList[1], params.StFromCount, params.StToToCount)
return retVal, "", err
})