diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index df3aeff44..f2ffbf040 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -1232,7 +1232,7 @@ func GetHalfHoursList() (strs []string) { return strs } -func RefreshAllMatterOrderStatus() (err error) { +func RefreshAllMatterOrderStatus(ctx *jxcontext.Context) (err error) { var ( db = dao.GetDB() goodsList []*model.GoodsOrder diff --git a/controllers/jx_order2.go b/controllers/jx_order2.go index 39b093650..eb63049fd 100644 --- a/controllers/jx_order2.go +++ b/controllers/jx_order2.go @@ -183,7 +183,7 @@ func (c *JxOrderController) GetMatterOrderStatus() { // @router /RefreshAllMatterOrderStatus [put] func (c *JxOrderController) RefreshAllMatterOrderStatus() { c.callRefreshAllMatterOrderStatus(func(params *tJxorderRefreshAllMatterOrderStatusParams) (retVal interface{}, errCode string, err error) { - err = localjx.RefreshAllMatterOrderStatus() + err = localjx.RefreshAllMatterOrderStatus(params.Ctx) return retVal, "", err }) }