1
This commit is contained in:
@@ -308,12 +308,12 @@ func (c *BiddingController) UpdateStockBySkuID() {
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UpdateMtActivity [get]
|
||||
func (c *BiddingController) UpdateMtActivity() {
|
||||
c.callUpdateMtActivity(func(params *tBindUpdateMtActivityParams) (retVal interface{}, hint string, err error) {
|
||||
retVal = bidding.GetMTInfo()
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
//func (c *BiddingController) UpdateMtActivity() {
|
||||
// c.callUpdateMtActivity(func(params *tBindUpdateMtActivityParams) (retVal interface{}, hint string, err error) {
|
||||
// retVal = bidding.GetMTInfo()
|
||||
// return retVal, "", err
|
||||
// })
|
||||
//}
|
||||
|
||||
// GetActivityList 更新美团任务数据
|
||||
// @Title 更新美团任务数据
|
||||
@@ -327,13 +327,37 @@ func (c *BiddingController) UpdateMtActivity() {
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetActivityList [get]
|
||||
func (c *BiddingController) GetActivityList() {
|
||||
c.callGetActivityList(func(params *tBindGetActivityListParams) (retVal interface{}, hint string, err error) {
|
||||
var storeIDs []int
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs); err != nil {
|
||||
//func (c *BiddingController) GetActivityList() {
|
||||
// c.callGetActivityList(func(params *tBindGetActivityListParams) (retVal interface{}, hint string, err error) {
|
||||
// var storeIDs []int
|
||||
// if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs); err != nil {
|
||||
// return nil, "", err
|
||||
// }
|
||||
// retVal, err = bidding.GetStatisticsList(utils.Str2Time(params.StartTime), utils.Str2Time(params.EndTime), storeIDs, params.Offset, params.PageSize)
|
||||
// return
|
||||
// })
|
||||
//}
|
||||
|
||||
//StoreOrderList 统计相同负责人门店订单量
|
||||
//@Title 统计门店订单数量
|
||||
//@Description 统计门店订单数量
|
||||
//@Param token header string true "认证token"
|
||||
//@Param startTime query string true "开始时间"
|
||||
//@Param endTime query string true "结束时间"
|
||||
//@Param storeIDs query string false "门店ID"
|
||||
//@Param vendorId query string false "平台id"
|
||||
//@Param offset query int false "结果起始序号(以0开始,缺省为0)"
|
||||
//@Param pageSize query int false "结果页大小(缺省为50,-1表示全部)"
|
||||
//@Success 200 {object} controllers.CallResult
|
||||
//@Failure 200 {object} controllers.CallResult
|
||||
//@router /StoreOrderList [get]
|
||||
func (c *BiddingController) StoreOrderList() {
|
||||
c.callStoreOrderList(func(params *tBindStoreOrderListParams) (retVal interface{}, hint string, err error) {
|
||||
var storeIDs, vendorIds []int
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.VendorId, &vendorIds); err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
retVal, err = bidding.GetStatisticsList(utils.Str2Time(params.StartTime), utils.Str2Time(params.EndTime), storeIDs, params.Offset, params.PageSize)
|
||||
return
|
||||
retVal, err = bidding.StatisticsOrderCount(utils.Str2Time(params.StartTime), utils.Str2Time(params.EndTime), storeIDs, vendorIds, params.Offset, params.PageSize)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user