- force mtps cancel reason to empty.

This commit is contained in:
gazebo
2018-11-12 18:00:10 +08:00
parent f8f5f77fbf
commit 8200a756ea
2 changed files with 2 additions and 1 deletions

View File

@@ -506,7 +506,7 @@ func (c *OrderManager) GetOrderStatusList(ctx *jxcontext.Context, vendorOrderID
sql += " AND t1.vendor_order_id = ? AND t1.vendor_id = ? AND t1.order_type = ?"
sqlParams = append(sqlParams, orderType)
}
sql += " ORDER BY t1.status_time"
sql += " ORDER BY t1.status_time, t1.order_type DESC"
db := dao.GetDB()
if err = dao.GetRows(db, &statusList, sql, sqlParams...); err != nil {

View File

@@ -282,6 +282,7 @@ func (c *DeliveryHandler) CancelWaybill(bill *model.Waybill, cancelReasonID int,
// cancelReasonID = mtpsapi.CancelReasonRideerOther
// }
cancelReasonID = mtpsapi.CancelReasonMerchantOther
cancelReason = ""
_, err = api.MtpsAPI.CancelOrder(utils.Str2Int64(bill.VendorWaybillID2), bill.VendorWaybillID, cancelReasonID, cancelReason)
return nil
}