fix status

This commit is contained in:
duyu 2024-07-16 11:05:28 +08:00
parent 1c1f220922
commit e34824b47d
1 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,13 @@ func FinishOrder(orders *models.Orders) (affected int64, err error) {
return return
} }
if orders.TransferStatus == 1 {
orders.Status = 1
}
if orders.TransferStatus == 4 || orders.TransferStatus == 5 {
orders.Status = orders.TransferStatus - 1
}
affected, err = models.GetInstance().SetDealingOrder(orders) affected, err = models.GetInstance().SetDealingOrder(orders)
return return
} }