fix status
This commit is contained in:
parent
1c1f220922
commit
e34824b47d
|
@ -34,6 +34,13 @@ func FinishOrder(orders *models.Orders) (affected int64, err error) {
|
|||
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)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue