|
|
@@ -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 |
|
|
|