Browse Source

文档

master
huangjiajun 2 months ago
parent
commit
deaafe8ee8
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      app/svc/svc_qualification.go

+ 4
- 4
app/svc/svc_qualification.go View File

@@ -146,7 +146,7 @@ func QualificationBankSave(c *gin.Context, req md.MediumBankInfo) error {
data.Uuid = utils.StrToInt(req.Uuid) data.Uuid = utils.StrToInt(req.Uuid)
data.MediumId = utils.StrToInt(req.MediumId) data.MediumId = utils.StrToInt(req.MediumId)
data.CurrencyConf = utils.StrToInt(req.CurrencyConf) 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 { if utils.StrToInt(req.Id) > 0 {
listDb := implement.NewMediumBankInfoDb(db.Db) listDb := implement.NewMediumBankInfoDb(db.Db)
list, _ := listDb.GetMediumBankInfoList(utils.StrToInt(req.MediumId)) 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) db.Db.Where("id=?", req.Id).Update(&data)
} else { } else {
data.CreateAt = time.Now()
data.CreateAt = time.Now().Format("2006-01-02 15:04:05")
db.Db.InsertOne(&data) db.Db.InsertOne(&data)
} }
return nil return nil
@@ -167,7 +167,7 @@ func QualificationContactSave(c *gin.Context, req md.MediumContactInfo) error {
req.State = "1" req.State = "1"
var data model2.MediumContactInfo var data model2.MediumContactInfo
copier.Copy(&data, &req) 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.State = utils.StrToInt(req.State)
data.Id = utils.StrToInt(req.Id) data.Id = utils.StrToInt(req.Id)
data.Uuid = utils.StrToInt(req.Uuid) 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) db.Db.Where("id=?", req.Id).Update(&data)
} else { } else {
data.CreateAt = time.Now()
data.CreateAt = time.Now().Format("2006-01-02 15:04:05")


db.Db.InsertOne(&data) db.Db.InsertOne(&data)
} }


Loading…
Cancel
Save