mirror of http://gitlab.batiao8.com/yic/film.git
day
This commit is contained in:
parent
40a1ead7fa
commit
03d106e48e
|
@ -2,6 +2,7 @@ package model
|
||||||
|
|
||||||
type Nowcar struct {
|
type Nowcar struct {
|
||||||
Id int64
|
Id int64
|
||||||
|
Day string
|
||||||
ShopName string
|
ShopName string
|
||||||
Workstation string
|
Workstation string
|
||||||
StartTime int64
|
StartTime int64
|
||||||
|
|
|
@ -72,6 +72,7 @@ func getInfo(devId string) ([]string, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
m.Id = 0
|
m.Id = 0
|
||||||
|
m.Day = time.Now().Format("2006-01-02")
|
||||||
m.Workstation = workstation
|
m.Workstation = workstation
|
||||||
m.StartTime = startTime.Unix()
|
m.StartTime = startTime.Unix()
|
||||||
dao.NewNowCarDao().Create(m)
|
dao.NewNowCarDao().Create(m)
|
||||||
|
|
Loading…
Reference in New Issue