diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index 4ad172187..8b06b75ef 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -1980,7 +1980,7 @@ func RrefreshMtwmVendorAct() (err error) { dao.ExecuteSQL(db, `TRUNCATE act_mtwm_vendor`) storeMaps, _ := dao.GetStoresMapList(db, []int{model.VendorIDMTWM}, nil, []int{model.StoreStatusOpened, model.StoreStatusHaveRest, model.StoreStatusClosed}, model.StoreStatusAll, model.StoreIsSyncAll, "", "", "") - task := tasksch.NewParallelTask("刷新美团活动", tasksch.NewParallelConfig().SetIsContinueWhenError(true), jxcontext.AdminCtx, + task := tasksch.NewParallelTask("刷新美团活动", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(true), jxcontext.AdminCtx, func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { storeMap := batchItemList[0].(*model.StoreMap) mtapi := mtwm.GetAPI(storeMap.VendorOrgCode, storeMap.StoreID, "") diff --git a/controllers/act.go b/controllers/act.go index 1f518bed8..d300f0c6d 100644 --- a/controllers/act.go +++ b/controllers/act.go @@ -441,3 +441,20 @@ func (c *ActController) GetVendorPopActDetail() { return retVal, "", err }) } + +// @Title 查询美团平台活动 +// @Description 查询美团平台活动 +// @Param token header string true "认证token" +// @Param storeIDs query string false "门店IDs" +// @Param skuIDs query string false "skuIDs" +// @Param beginAt query string false "活动开始日期" +// @Param endAt query string false "活动结束日期" +// @Param actType query int false "折扣或者秒杀" +// @Success 200 {object} controllers.CallResult +// @Failure 200 {object} controllers.CallResult +// @router /GetActMtwmVendor [get] +func (c *ActController) GetActMtwmVendor() { + c.callGetActMtwmVendor(func(params *tActGetActMtwmVendorParams) (retVal interface{}, errCode string, err error) { + return retVal, "", err + }) +}