Commit 25b530ee by Joneq

修改法人变更为五年

parent 509ff18e
Showing with 2 additions and 2 deletions
...@@ -223,7 +223,7 @@ func (d *dao)UpdateBankComCredits(ctx context.Context,com_credits model.ComCredi ...@@ -223,7 +223,7 @@ func (d *dao)UpdateBankComCredits(ctx context.Context,com_credits model.ComCredi
//修改相应的参数 //修改相应的参数
total_credit_score := logic.StringTurnFloat64(res["static_credit_score"]) + logic.StringTurnFloat64(res["dynamic_credit_score"]) total_credit_score := logic.StringTurnFloat64(res["static_credit_score"]) + logic.StringTurnFloat64(res["dynamic_credit_score"])
grade,_ := d.GetBankGrade(ctx,total_credit_score) grade,_ := d.GetGrade(ctx,total_credit_score)
execSql := "update `lie_com_credits` set `static_credit_score` = ?,`dynamic_credit_score` = ?, `total_credit_score` = ? , `ichunt_hunting_core` = ? , `recom_time_limit` = ? ,`recommended_amount` = ? ,`status` = 10 where id = ? " execSql := "update `lie_com_credits` set `static_credit_score` = ?,`dynamic_credit_score` = ?, `total_credit_score` = ? , `ichunt_hunting_core` = ? , `recom_time_limit` = ? ,`recommended_amount` = ? ,`status` = 10 where id = ? "
row,err := d.db_bank.Exec(ctx,execSql,logic.StringTurnFloat64(res["static_credit_score"]),logic.StringTurnFloat64(res["dynamic_credit_score"]),total_credit_score,grade["grade"],grade["recommended_limit"],logic.StringTurnFloat64(grade["recommended_amount"]),com_credits.Id) row,err := d.db_bank.Exec(ctx,execSql,logic.StringTurnFloat64(res["static_credit_score"]),logic.StringTurnFloat64(res["dynamic_credit_score"]),total_credit_score,grade["grade"],grade["recommended_limit"],logic.StringTurnFloat64(grade["recommended_amount"]),com_credits.Id)
...@@ -243,7 +243,7 @@ func (d *dao)GetBankGrade(ctx context.Context,sumScore float64)(res map[string]s ...@@ -243,7 +243,7 @@ func (d *dao)GetBankGrade(ctx context.Context,sumScore float64)(res map[string]s
) )
//获取当前条的数据 //获取当前条的数据
if rows, err = d.db.Query(ctx, "select "+ SqlField + " from lie_grade where status = 1 and min_score <= ? and max_score > ?",sumScore,sumScore); err != nil { if rows, err = d.db_bank.Query(ctx, "select "+ SqlField + " from lie_grade where status = 1 and min_score <= ? and max_score > ?",sumScore,sumScore); err != nil {
err = errors.WithStack(err) err = errors.WithStack(err)
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment