log
This commit is contained in:
@@ -198,14 +198,18 @@ func CreateWayOrder(ctx *jxcontext.Context, param *model.MakeOrderParamReq, user
|
|||||||
|
|
||||||
// CancelWayOrder 取消运单 todo
|
// CancelWayOrder 取消运单 todo
|
||||||
func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrderReq) error {
|
func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrderReq) error {
|
||||||
|
var db = dao.GetDB()
|
||||||
// 查询订单
|
// 查询订单
|
||||||
globals.SugarLogger.Debug("userid==================", userId)
|
globals.SugarLogger.Debug("userid==================", userId)
|
||||||
globals.SugarLogger.Debug("param.order_no==================", param.OrderNo)
|
globals.SugarLogger.Debug("param.order_no==================", param.OrderNo)
|
||||||
|
order, err := dao.GetUserVendorOrder(db, userId, param.OrderNo)
|
||||||
order := &model.UserVendorOrder{UserId: userId, LocalWayBill: param.OrderNo}
|
if err != nil {
|
||||||
if err := dao.GetEntity(dao.GetDB(), order, "UserId", "LocalWayBill"); err != nil {
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
//order := &model.UserVendorOrder{UserId: userId, LocalWayBill: param.OrderNo}
|
||||||
|
//if err := dao.GetEntity(dao.GetDB(), order, "UserId", "LocalWayBill"); err != nil {
|
||||||
|
// return err
|
||||||
|
//}
|
||||||
globals.SugarLogger.Debugf("sdhgeagqweg344w33qgweag== %s ", order.OtherWayBill)
|
globals.SugarLogger.Debugf("sdhgeagqweg344w33qgweag== %s ", order.OtherWayBill)
|
||||||
globals.SugarLogger.Debugf("jbhbhjdsgbgjhghiwsg== %s ", order.LastOperator)
|
globals.SugarLogger.Debugf("jbhbhjdsgbgjhghiwsg== %s ", order.LastOperator)
|
||||||
if time.Now().Unix()-order.CreatedAt.Unix() <= 30 {
|
if time.Now().Unix()-order.CreatedAt.Unix() <= 30 {
|
||||||
|
|||||||
Reference in New Issue
Block a user