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