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
b0def0e1
authored
Dec 17, 2019
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
e1531b5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
internal/dao/dong_mod.go
internal/dao/dong_mod.go
View file @
b0def0e1
...
...
@@ -81,18 +81,20 @@ func (d *dao) DongRate(ctx context.Context,y map[string]string,modelItems []map[
if
c3
[
"delay_rate"
]
==
""
{
c3
[
"delay_rate"
]
=
"0"
}
ladder_rate
=
logic
.
MyFloat64
(
c3
[
"delay_rate"
]);
remark
=
c3
[
"delay_rate"
]
case
48
:
// 账期使用倍数统计
last_month
:=
time
.
Now
()
.
Format
(
"2006"
)
+
time
.
Now
()
.
AddDate
(
0
,
-
1
,
0
)
.
Format
(
"01"
)
sql6
:=
fmt
.
Sprintf
(
_sql
4
,
y
[
"erp_company_code"
],
last_month
)
sql6
:=
fmt
.
Sprintf
(
_sql
6
,
y
[
"erp_company_code"
],
last_month
)
c3
,
_
:=
d
.
QueryOne
(
ctx
,
1
,
sql6
)
if
c3
[
"period_use_times_six"
]
==
""
{
c3
[
"period_use_times_six"
]
=
"0"
;
if
c3
==
nil
||
c3
[
"period_use_times_six"
]
==
""
{
ladder_rate
=
0
;
remark
=
"0"
}
else
{
ladder_rate
=
logic
.
MyFloat64
(
c3
[
"period_use_times_six"
]);
//六个月的账期使用倍数
remark
=
c3
[
"period_use_times_six"
]
}
ladder_rate
=
logic
.
MyFloat64
(
c3
[
"period_use_times_six"
]);
//六个月的账期使用倍数
remark
=
c3
[
"period_use_times_six"
]
}
if
project_id
!=
48
&&
project_id
!=
44
{
if
s1
==
""
||
s2
==
""
{
...
...
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