From 0d0f10eda799efba4724b6b7ed19029012d136b6 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 26 Sep 2025 20:14:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8C=87?= =?UTF-8?q?=E6=A0=87=E6=A0=87=E9=A2=98=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E5=8F=8D=E5=BA=8F=E5=88=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_data/model/kpi_c_report.go | 2 +- src/modules/network_data/repository/kpi_c_report.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/network_data/model/kpi_c_report.go b/src/modules/network_data/model/kpi_c_report.go index 9cd6aedf..a5ac43e2 100644 --- a/src/modules/network_data/model/kpi_c_report.go +++ b/src/modules/network_data/model/kpi_c_report.go @@ -11,7 +11,7 @@ type KpiCTitle struct { Status string `json:"status" gorm:"column:status"` // 0-Inactive/1-Active/2-Deleted Description string `json:"description" gorm:"column:description"` CreatedBy string `json:"createdBy" gorm:"column:created_by"` - UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at"` + UpdatedAt string `json:"updatedAt" gorm:"column:updated_at"` } // TableName 表名称 diff --git a/src/modules/network_data/repository/kpi_c_report.go b/src/modules/network_data/repository/kpi_c_report.go index f87a7c51..f2d6bdeb 100644 --- a/src/modules/network_data/repository/kpi_c_report.go +++ b/src/modules/network_data/repository/kpi_c_report.go @@ -208,7 +208,7 @@ func (r KpiCReport) TitleSelect(param model.KpiCTitle) []model.KpiCTitle { // TitleInsert 新增信息 func (r KpiCReport) TitleInsert(param model.KpiCTitle) int64 { if param.CreatedBy != "" { - param.UpdatedAt = time.Now().UnixMilli() + param.UpdatedAt = time.Now().Format(time.DateTime) } param.Status = "1" tx := db.DB("").Create(¶m) @@ -223,7 +223,7 @@ func (r KpiCReport) TitleUpdate(param model.KpiCTitle) int64 { if param.ID <= 0 { return 0 } - param.UpdatedAt = time.Now().UnixMilli() + param.UpdatedAt = time.Now().Format(time.DateTime) tx := db.DB("").Model(&model.KpiCTitle{}) // 构建查询条件 tx = tx.Where("id = ?", param.ID)