From deaafe8ee842e00d8ea44665c2ea8db684028057 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 28 Aug 2024 16:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/svc_qualification.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/svc/svc_qualification.go b/app/svc/svc_qualification.go index b264102..6b92038 100644 --- a/app/svc/svc_qualification.go +++ b/app/svc/svc_qualification.go @@ -146,7 +146,7 @@ func QualificationBankSave(c *gin.Context, req md.MediumBankInfo) error { data.Uuid = utils.StrToInt(req.Uuid) data.MediumId = utils.StrToInt(req.MediumId) data.CurrencyConf = utils.StrToInt(req.CurrencyConf) - data.UpdateAt = time.Now() + data.UpdateAt = time.Now().Format("2006-01-02 15:04:05") if utils.StrToInt(req.Id) > 0 { listDb := implement.NewMediumBankInfoDb(db.Db) list, _ := listDb.GetMediumBankInfoList(utils.StrToInt(req.MediumId)) @@ -158,7 +158,7 @@ func QualificationBankSave(c *gin.Context, req md.MediumBankInfo) error { } db.Db.Where("id=?", req.Id).Update(&data) } else { - data.CreateAt = time.Now() + data.CreateAt = time.Now().Format("2006-01-02 15:04:05") db.Db.InsertOne(&data) } return nil @@ -167,7 +167,7 @@ func QualificationContactSave(c *gin.Context, req md.MediumContactInfo) error { req.State = "1" var data model2.MediumContactInfo copier.Copy(&data, &req) - data.UpdateAt = time.Now() + data.UpdateAt = time.Now().Format("2006-01-02 15:04:05") data.State = utils.StrToInt(req.State) data.Id = utils.StrToInt(req.Id) data.Uuid = utils.StrToInt(req.Uuid) @@ -183,7 +183,7 @@ func QualificationContactSave(c *gin.Context, req md.MediumContactInfo) error { } db.Db.Where("id=?", req.Id).Update(&data) } else { - data.CreateAt = time.Now() + data.CreateAt = time.Now().Format("2006-01-02 15:04:05") db.Db.InsertOne(&data) }