1
This commit is contained in:
@@ -484,16 +484,24 @@ func (c *OrderController) GetStoresOrderSaleInfo() {
|
||||
// @Param token header string true "认证token"
|
||||
// @Param fromTime query string true "起始时间"
|
||||
// @Param toTime query string true "结束时间"
|
||||
// @Param storeIDs query int false "门店id"
|
||||
// @Param brandIds query string false "品牌id"
|
||||
// @Param vendorIds query string false "平台id"
|
||||
// @Param storeID query int false "门店id"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /StaleIndexInfo [get]
|
||||
func (c *OrderController) StaleIndexInfo() {
|
||||
c.callStaleIndexInfo(func(params *tOrderStaleIndexInfoParams) (retVal interface{}, code string, err error) {
|
||||
timeList, err := jxutils.BatchStr2Time(params.FromTime, params.ToTime)
|
||||
if err == nil {
|
||||
retVal, err = orderman.FixedOrderManager.GetStoresOrderSaleInfo2(params.Ctx, timeList[0], timeList[1], params.StoreIDs)
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
var vendors []int
|
||||
var brandIds []int
|
||||
if err := jxutils.Strings2Objs(params.VendorIds, &vendors, params.BrandIds, &brandIds); err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
retVal, err = orderman.FixedOrderManager.GetStoresOrderSaleInfo2(params.Ctx, timeList[0], timeList[1], params.StoreID, brandIds, vendors)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user