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
f1c04cba
authored
Jan 02, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改数据库获取不正确
parent
e48515f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
internal/dao/bank_dong.go
internal/dao/common.go
internal/dao/bank_dong.go
View file @
f1c04cba
...
...
@@ -195,8 +195,8 @@ func (d *dao) BankDongRate(ctx context.Context,y map[string]string,modelItems []
s2
=
c1
[
"unload_amount"
]
case
44
:
//近6个月逾期变化率
sql7
:=
fmt
.
Sprintf
(
bank_sql7
,
y
[
"erp_company_code"
],
month_six
,
month_six
)
c3
,
err
:=
d
.
QueryOne
(
ctx
,
3
,
sql7
)
if
err
!=
nil
||
c3
[
"delay_rate"
]
==
""
{
c3
,
_
:=
d
.
QueryOne
(
ctx
,
3
,
sql7
)
if
c3
[
"delay_rate"
]
==
""
{
c3
[
"delay_rate"
]
=
"0"
}
...
...
internal/dao/common.go
View file @
f1c04cba
...
...
@@ -82,6 +82,9 @@ func (d *dao) QueryOne(ctx context.Context,db int,sql_str string)(res map[string
fmt
.
Println
(
"error1002"
+
sql_str
,
err
)
return
}
res
=
make
(
map
[
string
]
string
)
for
_
,
v
:=
range
project_rows
{
res
=
v
break
...
...
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