附近小店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

svc_order_cancel.go 333 B

2 months ago
12345678910111213
  1. package svc
  2. import (
  3. "applet/app/db/model"
  4. "time"
  5. "xorm.io/xorm"
  6. )
  7. func OrderCancel(eg *xorm.Engine, dbName string) {
  8. date := time.Now().Unix() - 900
  9. eg.Where("state=0 and create_at<?", time.Unix(date, 0).Format("2006-01-02 15:04:05")).Cols("state").Update(&model.CommunityTeamOrder{State: 3, CancelAt: time.Now()})
  10. return
  11. }