1
This commit is contained in:
@@ -137,6 +137,62 @@ func (c *StoreController) GetStoreFineDesc() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 统计门店订单结算以及京西收益,与美团订单对比
|
||||
// @Description 统计门店订单结算以及京西收益,与美团订单对比
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeIDs query string false "京西门店ID列表[1,2,3],缺省不限制"
|
||||
// @Param vendorIds query string false "京西门店ID列表[1,2,3],缺省不限制"
|
||||
// @Param start query string true "起始时间1970-01-01 00:00:00"
|
||||
// @Param end query string true "结束时间1970-01-01 23:59:59"
|
||||
// @Param size query int true "每页最大数"
|
||||
// @Param offset query int true "跳过数量"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetStoreSettlementInfo [get]
|
||||
func (c *StoreController) GetStoreSettlementInfo() {
|
||||
c.callGetStoreSettlementInfo(func(params *tStoreGetStoreSettlementInfoParams) (retVal interface{}, errCode string, err error) {
|
||||
timeList, err := jxutils.BatchStr2Time(params.Start, params.End)
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
var storeIDList []int
|
||||
var vendorIdList []int
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDList, params.VendorIds, &vendorIdList); err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
retVal, err = cms.GetStoreSettlementList(storeIDList, timeList[0], timeList[1], vendorIdList, params.Size, params.Offset)
|
||||
return
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 根据城市code统计京西收益
|
||||
// @Description 根据城市code统计京西收益
|
||||
// @Param token header string true "认证token"
|
||||
// @Param cityCode query string false "京西门店城市列表["1","2","3"],缺省不限制"
|
||||
// @Param vendorIds query string false "京西门店ID列表[1,2,3],缺省不限制"
|
||||
// @Param start query string true "起始时间1970-01-01 00:00:00"
|
||||
// @Param end query string true "结束时间1970-01-01 23:59:59"
|
||||
// @Param size query int true "每页最大数"
|
||||
// @Param offset query int true "跳过数量"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetCitySettlementInfo [get]
|
||||
func (c *StoreController) GetCitySettlementInfo() {
|
||||
c.callGetCitySettlementInfo(func(params *tStoreGetCitySettlementInfoParams) (retVal interface{}, errCode string, err error) {
|
||||
timeList, err := jxutils.BatchStr2Time(params.Start, params.End)
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
var cityList []string
|
||||
var vendorIdList []int
|
||||
if err = jxutils.Strings2Objs(params.CityCode, &cityList, params.VendorIds, &vendorIdList); err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
retVal, err = cms.GetCityCodeSettlementList(cityList, timeList[0], timeList[1], vendorIdList, params.Size, params.Offset)
|
||||
return
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 删除京西门店
|
||||
// @Description 删除京西门店
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user