- 美团外卖售后单中尽量使用refund_id参数(如果有值的话)

This commit is contained in:
gazebo
2019-05-28 17:14:53 +08:00
parent 62f32c4f11
commit fbefdfd5cf
2 changed files with 4 additions and 2 deletions

View File

@@ -311,7 +311,7 @@ func (c *OrderManager) UpdateAfsOrderFields(afsOrder *model.AfsOrder, fieldList
func (c *OrderManager) setAfsOrderID(db *dao.DaoDB, orderStatus *model.OrderStatus) {
// globals.SugarLogger.Debugf("setAfsOrderID1 orderStatus:%v", utils.Format4Output(orderStatus, true))
if orderStatus.VendorOrderID == "" {
if dao.IsVendorThingIDEmpty(orderStatus.VendorOrderID) {
index := 1
if afsOrderList, err2 := dao.GetAfsOrders(db, orderStatus.RefVendorID, orderStatus.RefVendorOrderID, ""); err2 == nil {
if len(afsOrderList) > 0 {