|
|
@ -84,7 +84,6 @@ func GetCustomerOrdersByActivityId(userId, activityId, rehearsalId, areaId int64 |
|
|
|
|
|
|
|
func (t *CustomerOrder) UpdateStatusBy(outTradeNo string, originStatus, status int) (int64, error) { |
|
|
|
t.Status = status |
|
|
|
t.CancelTime = time.Now() |
|
|
|
return core.GetXormAuto().Where("is_delete=0 and status=? and out_trade_no=?", |
|
|
|
originStatus, outTradeNo).Cols("status, cancel_time").Update(t) |
|
|
|
} |