Browse Source

update 中基积分

tags/v4.0.8
DengBiao 1 year ago
parent
commit
41932637aa
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      rule/integral_release_settlement.go

+ 12
- 1
rule/integral_release_settlement.go View File

@@ -203,8 +203,19 @@ func DailySettlementIntegralReleaseForInterposition(engine *xorm.Engine, mid str
return err return err
} }
} }
//3、更新 `integral_release_basic` 表
integralRelease.ReleaseDate = today
updateAffected, err := db.IntegralReleaseUpdate(session, integralRelease.Id, integralRelease)
if err != nil {
_ = session.Rollback()
return err
}
if updateAffected == 0 {
_ = session.Rollback()
return errors.New("更新 integral_release_basic 记录失败")
}


//3、提交事务
//4、提交事务
err = session.Commit() err = session.Commit()
if err != nil { if err != nil {
_ = session.Rollback() _ = session.Rollback()


Loading…
Cancel
Save