|
@@ -423,7 +423,7 @@ func JudgePackageOrdOrdState(ord *model.Order) *model.Order { |
|
|
} |
|
|
} |
|
|
if ordState != oldOrdState { |
|
|
if ordState != oldOrdState { |
|
|
ord.State = ordState |
|
|
ord.State = ordState |
|
|
_, err2 := db.Db.Where("oid=?", ord.Oid).Cols("state").Update(&ord) |
|
|
|
|
|
|
|
|
_, err2 := db.Db.Where("oid=?", ord.Oid).Cols("state").Update(ord) |
|
|
if err2 != nil { |
|
|
if err2 != nil { |
|
|
return ord |
|
|
return ord |
|
|
} |
|
|
} |
|
|