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