This commit is contained in:
jiangyong 2024-04-27 23:18:04 +08:00
parent 40a1ead7fa
commit 03d106e48e
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package model
type Nowcar struct {
Id int64
Day string
ShopName string
Workstation string
StartTime int64

View File

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