From f8cb087ab4e99d84e84ae2eb931491a3a0f41de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 29 Sep 2020 11:57:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=9B=A2=E9=85=8D=E9=80=81=E5=B7=AE?= =?UTF-8?q?=E5=BC=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/cms_store.go | 8 +++++++- routers/commentsRouter_controllers.go | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/controllers/cms_store.go b/controllers/cms_store.go index de0e1f8cc..5a2a48b5f 100644 --- a/controllers/cms_store.go +++ b/controllers/cms_store.go @@ -912,5 +912,11 @@ func (c *StoreController) StoreAudit() { // @Failure 200 {object} controllers.CallResult // @router /GetDiffJxStoreAndMTWMStoreInfo [post] func (c *StoreController) GetDiffJxStoreAndMTWMStoreInfo() { - + c.callGetDiffJxStoreAndMTWMStoreInfo(func(params *tStoreGetDiffJxStoreAndMTWMStoreInfoParams) (retVal interface{}, errCode string, err error) { + var storeIDs []int + if err = utils.UnmarshalUseNumber([]byte(params.StoreIDs), &storeIDs); err == nil { + err = cms.GetDiffJxStoreAndMTWMStoreInfo(params.Ctx, storeIDs) + } + return retVal, "", err + }) } diff --git a/routers/commentsRouter_controllers.go b/routers/commentsRouter_controllers.go index 44e4a0ffe..5a613a9e9 100644 --- a/routers/commentsRouter_controllers.go +++ b/routers/commentsRouter_controllers.go @@ -1971,6 +1971,15 @@ func init() { Filters: nil, Params: nil}) + beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"], + beego.ControllerComments{ + Method: "GetDiffJxStoreAndMTWMStoreInfo", + Router: `/GetDiffJxStoreAndMTWMStoreInfo`, + AllowHTTPMethods: []string{"post"}, + MethodParams: param.Make(), + Filters: nil, + Params: nil}) + beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"], beego.ControllerComments{ Method: "GetJdDeliveryArea",