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
fc647ae6
authored
Dec 31, 2019
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改历史数据
parent
8c26600a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletions
cmd/static/detail/history_bussiness.go
internal/dao/com_credits.go
internal/logic/tianyancha.go
cmd/static/detail/history_bussiness.go
View file @
fc647ae6
...
...
@@ -42,6 +42,11 @@ func CooperationTime() {
h_currentScore
=
GetScore
(
29
,
strconv
.
FormatInt
(
diffTime
,
10
))
//如果是没数据,默认零分
if
len
(
BasicInfo
)
==
0
{
h_currentScore
=
0
}
h_totalScore
[
0
]
=
SetScore
(
h_currentScore
,
29
)
SetInsertScoreChanFooter
(
1
,
4
,
29
)
...
...
@@ -71,6 +76,11 @@ func HistoricalOverdueTimes() {
h_currentScore
=
GetScore
(
32
,
BasicInfo
[
"total_delay_times"
])
//如果是没数据,默认零分
if
len
(
BasicInfo
)
==
0
{
h_currentScore
=
0
}
h_totalScore
[
3
]
=
SetScore
(
h_currentScore
,
32
)
SetInsertScoreChanFooter
(
1
,
4
,
32
)
}
...
...
internal/dao/com_credits.go
View file @
fc647ae6
...
...
@@ -15,7 +15,7 @@ func (d *dao) GetCompanyCresitsList(ctx context.Context) (res []map[string]strin
var
(
rows
*
sql
.
Rows
)
if
rows
,
err
=
d
.
db
.
Query
(
ctx
,
"SELECT "
+
SqlField
+
" FROM lie_com_credits where
status = 5 or status = 10
"
);
err
!=
nil
{
if
rows
,
err
=
d
.
db
.
Query
(
ctx
,
"SELECT "
+
SqlField
+
" FROM lie_com_credits where
id > 4906
"
);
err
!=
nil
{
err
=
errors
.
WithStack
(
err
)
return
}
...
...
internal/logic/tianyancha.go
View file @
fc647ae6
...
...
@@ -2,6 +2,7 @@ package logic
import
(
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
...
...
@@ -112,6 +113,9 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
if
len
(
string
(
respBody
))
<
10000
{
returnData
[
"tianyancha_json"
]
+=
"||||"
+
string
(
respBody
)
}
fmt
.
Println
(
len
(
returnData
[
"tianyancha_json"
]))
var
changeInfoNum
int64
changeInfoNum
=
0
for
_
,
v
:=
range
totalNum
.
Result
.
Items
{
...
...
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