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
1d1f8716
authored
Jan 08, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改时间获取不正确
parent
20b615eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
15 deletions
internal/dao/bank_dong.go
internal/dao/dong.go
internal/dao/dong_mod.go
internal/dao/bank_dong.go
View file @
1d1f8716
...
...
@@ -226,7 +226,7 @@ func (d *dao) BankDongRate(ctx context.Context,y map[string]string,modelItems []
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"
)
last_month
:=
time
.
Now
()
.
AddDate
(
0
,
-
1
,
0
)
.
Format
(
"2006
01"
)
sql6
:=
fmt
.
Sprintf
(
bank_sql6
,
y
[
"erp_company_code"
],
last_month
)
c3
,
_
:=
d
.
QueryOne
(
ctx
,
3
,
sql6
)
if
c3
==
nil
||
c3
[
"period_use_times_six"
]
==
""
{
...
...
internal/dao/dong.go
View file @
1d1f8716
...
...
@@ -21,20 +21,7 @@ const (
//项目对应的id
var
Model_dong
=
map
[
int
]
string
{
0
:
"所有"
,
35
:
"逾期金额率"
,
36
:
"发生逾期笔数率"
,
37
:
"平均逾期支付时间(天)"
,
38
:
"平均付款时间(天)"
,
39
:
"正常收款金额率"
,
40
:
"正常收款笔数率"
,
41
:
"近6个月账期变化率"
,
42
:
"交货及时率"
,
43
:
"退货率"
,
44
:
"近6个月逾期变化率"
,
45
:
"近6个月参保人数变化率"
,
48
:
"账期使用程度倍数"
,
999
:
"累计动态分数"
,
-
1
:
"队列监听"
,
}
//动态模型对应的日志文件名称
var
Model_dong_log
=
map
[
int
]
string
{
...
...
internal/dao/dong_mod.go
View file @
1d1f8716
...
...
@@ -105,7 +105,7 @@ func (d *dao) DongRate(ctx context.Context,y map[string]string,modelItems []map[
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"
)
last_month
:=
time
.
Now
()
.
AddDate
(
0
,
-
1
,
0
)
.
Format
(
"2006
01"
)
sql6
:=
fmt
.
Sprintf
(
_sql6
,
y
[
"erp_company_code"
],
last_month
)
c3
,
_
:=
d
.
QueryOne
(
ctx
,
1
,
sql6
)
if
c3
==
nil
||
c3
[
"period_use_times_six"
]
==
""
{
...
...
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