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
00a22506
authored
Jan 06, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
判断分母为零的情况
parent
2dd63bf4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
internal/dao/bank_dong.go
internal/dao/bank_dong.go
View file @
00a22506
...
...
@@ -251,7 +251,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