This commit is contained in:
aozhiwei 2024-09-03 11:41:05 +08:00
parent 25ff66cd9c
commit b5c46e24f7

View File

@ -88,8 +88,7 @@ func (this *stackingCec) saveToDb(ds *f5.DataSet) bool {
p := new(itemSoldOut) p := new(itemSoldOut)
if q5.DecodeJson(returnValues, p) == nil { if q5.DecodeJson(returnValues, p) == nil {
decodeJsonOk = true decodeJsonOk = true
var dbErr error dbErr, _, _ := f5.GetGoStyleDb().NewUpsert(
f5.GetGoStyleDb().Upsert(
constant.BCEVENT_DB, constant.BCEVENT_DB,
"t_staking_cec_record", "t_staking_cec_record",
[][]string{ [][]string{
@ -111,9 +110,6 @@ func (this *stackingCec) saveToDb(ds *f5.DataSet) bool {
{"amount", amount}, {"amount", amount},
{"createtime", createTime}, {"createtime", createTime},
{"modifytime", modifyTime}, {"modifytime", modifyTime},
},
func (err error, lastInsertId int64, rowsAffected int64) {
dbErr = err
}) })
if dbErr != nil { if dbErr != nil {
return false return false