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
61e8b7bf
authored
Jan 03, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改获取不正确
parent
d74e9bd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
internal/dao/bank_dong.go
internal/dao/bank_dong.go
View file @
61e8b7bf
...
...
@@ -60,7 +60,7 @@ func (d *dao) BankDongMain(ctx context.Context,project_id int,erp_company_code s
if
project_id
!=
999
&&
project_id
!=
0
{
//项目配置
sql_str1
:=
fmt
.
Sprintf
(
_sql1
,
strconv
.
Itoa
(
project_id
))
modelItem
,
_
=
d
.
QueryOne
(
ctx
,
3
,
sql_str1
)
modelItem
,
_
=
d
.
QueryOne
(
ctx
,
1
,
sql_str1
)
if
modelItem
==
nil
{
logic
.
LogWrite
(
"不存在该项目配置lie_model.project_id:"
+
strconv
.
Itoa
(
project_id
),
log_pre
,
1
)
return
...
...
@@ -69,7 +69,7 @@ func (d *dao) BankDongMain(ctx context.Context,project_id int,erp_company_code s
//查询逾期率项目详情
sql_str4
:=
fmt
.
Sprintf
(
_sql3
,
strconv
.
Itoa
(
project_id
))
modelItems
,
_
=
d
.
QueryMany
(
ctx
,
3
,
sql_str4
)
modelItems
,
_
=
d
.
QueryMany
(
ctx
,
1
,
sql_str4
)
if
modelItems
==
nil
{
logic
.
LogWrite
(
"不存在该项目配置详情lie_model_items,project_id:"
+
strconv
.
Itoa
(
project_id
),
log_pre
,
1
)
return
...
...
@@ -244,7 +244,7 @@ func (d *dao) BankDongAddScore(ctx context.Context,com_credits_id int64,month_si
sum_dong_score
float64
//动态模型总分
)
c1
,
_
:=
d
.
QueryOne
(
ctx
,
1
,
fmt
.
Sprintf
(
bank_sql5
,
com_credits_id
,
month_six_zi
))
c1
,
_
:=
d
.
QueryOne
(
ctx
,
3
,
fmt
.
Sprintf
(
bank_sql5
,
com_credits_id
,
month_six_zi
))
if
c1
[
"sum_dong_score"
]
==
"0"
||
c1
[
"sum_dong_score"
]
==
""
{
//没有结果
sum_dong_score
=
0
}
else
{
...
...
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