物料订单状态变化测试
This commit is contained in:
@@ -579,12 +579,15 @@ func AdjustOrder(ctx *jxcontext.Context, order *model.GoodsOrder, removedSkuList
|
||||
}
|
||||
|
||||
func PickupGoods(order *model.GoodsOrder, isSelfDelivery bool, userName string) (err error) {
|
||||
globals.SugarLogger.Debugf("orderSolutionForWuLiao1")
|
||||
err = changeOrderStatus(order.VendorOrderID, model.OrderStatusFinishedPickup, "")
|
||||
globals.SugarLogger.Debugf("orderSolutionForWuLiao2")
|
||||
err = orderSolutionForWuLiao(order)
|
||||
return err
|
||||
}
|
||||
|
||||
func orderSolutionForWuLiao(order *model.GoodsOrder) (err error) {
|
||||
globals.SugarLogger.Debugf("orderSolutionForWuLiao3, [%v]", *order)
|
||||
if order.FromStoreID != 0 {
|
||||
// var (
|
||||
// goodsNos []string
|
||||
@@ -939,3 +942,11 @@ func GetHalfHoursList() (strs []string) {
|
||||
}
|
||||
return strs
|
||||
}
|
||||
|
||||
func GetMatterOrderStatus(ctx *jxcontext.Context, vendorOrderID string) (err error) {
|
||||
// var (
|
||||
// db = dao.GetDB()
|
||||
// )
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -160,3 +160,17 @@ func (c *JxOrderController) PayForPopluarMan() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 查询物料订单状态
|
||||
// @Description 查询物料订单状态
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorOrderID formData string true "订单ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetMatterOrderStatus [post]
|
||||
func (c *JxOrderController) GetMatterOrderStatus() {
|
||||
c.callGetMatterOrderStatus(func(params *tJxorderGetMatterOrderStatusParams) (retVal interface{}, errCode string, err error) {
|
||||
err = localjx.GetMatterOrderStatus(params.Ctx, params.VendorOrderID)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user