Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
kaopu-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
25b530ee
authored
Feb 14, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改法人变更为五年
parent
509ff18e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
internal/dao/com_credits.go
internal/dao/com_credits.go
View file @
25b530ee
...
@@ -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
.
Get
Bank
Grade
(
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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment