From 03d106e48e0dd5e1db5c4aa8e534eae15e4b6dba Mon Sep 17 00:00:00 2001 From: jiangyong Date: Sat, 27 Apr 2024 23:18:04 +0800 Subject: [PATCH] day --- model/nowcar.go | 1 + worker/nowcar/nowcar.go | 1 + 2 files changed, 2 insertions(+) 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)