Browse Source

xxxx

master
黄梓健 5 years ago
parent
commit
cb4f3b74f3
  1. 1
      controllers/client/good.go
  2. 1
      models/customer_order.go
  3. 338040
      test/log/hdzj.log
  4. 2
      utils/define/define.go

1
controllers/client/good.go

@ -286,6 +286,7 @@ func (t *GoodCtl) CancelOrder() {
err = session.Begin()
t.CheckErr(err)
order.Status = 9
order.CancelTime = time.Now()
_, err = session.Where("is_delete=0 and status=? and out_trade_no=?",
0, outTradeNo).Cols("status, cancel_time").Update(order)
if err != nil {

1
models/customer_order.go

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

338040
test/log/hdzj.log
File diff suppressed because it is too large
View File

2
utils/define/define.go

@ -86,5 +86,5 @@ const (
TYPE_ENTRYPEOPLE = "entry_people"
)
var DefaultTime = time.Date(1970, 1, 1, 8, 0, 0, 0, time.UTC)
var DefaultTime = time.Date(1970, 1, 1, 8, 0, 0, 0, time.Local)
var DefaultOrderNo = 10000000000
Loading…
Cancel
Save