From 505de834d4df796190060c9db720c33075791624 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 27 May 2024 16:52:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/svc_order_track_save_create_update.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/svc/svc_order_track_save_create_update.go b/app/svc/svc_order_track_save_create_update.go index 1bd0912..d70e040 100644 --- a/app/svc/svc_order_track_save_create_update.go +++ b/app/svc/svc_order_track_save_create_update.go @@ -356,6 +356,10 @@ func OrderSaveCreateUpdate(eg *xorm.Engine, pvd string, ordData *[]md.OrderInfo, } _ = db.DbsOrderUpdate(eg, v.OrdId, &v) } + if v.State == 4 && ords[v.PvdOid].Reason != "" && v.Reason == "" { + v.Reason = ords[v.PvdOid].Reason + _ = db.DbsOrderUpdate(eg, v.OrdId, &v) + } if v.State != ords[v.PvdOid].State && (v.State != 4 || v.Pvd == md.PVD_JD || v.Pvd == md.PVD_JDOwn || v.Pvd == md.PVD_ELM) { if ords[v.PvdOid].Reason != "" { v.Reason = ords[v.PvdOid].Reason