diff --git a/model/nowcar.go b/model/nowcar.go index 17f5ff2..2f63740 100644 --- a/model/nowcar.go +++ b/model/nowcar.go @@ -2,6 +2,7 @@ package model type Nowcar struct { Id int64 + Day string ShopName string Workstation string StartTime int64 diff --git a/worker/nowcar/nowcar.go b/worker/nowcar/nowcar.go index fa0ec2c..d856823 100644 --- a/worker/nowcar/nowcar.go +++ b/worker/nowcar/nowcar.go @@ -72,6 +72,7 @@ func getInfo(devId string) ([]string, error) { continue } m.Id = 0 + m.Day = time.Now().Format("2006-01-02") m.Workstation = workstation m.StartTime = startTime.Unix() dao.NewNowCarDao().Create(m)