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
26483060
authored
Nov 27, 2019
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加commonlogic
parent
4637f69d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
15 deletions
cmd/static/add_score.go
cmd/static/company_info.go
cmd/static/enterprise_credit.go
cmd/static/history_bussiness.go
internal/logic/common.go
cmd/static/add_score.go
View file @
26483060
...
...
@@ -4,12 +4,12 @@ package main
func
AddScore
()
{
var
(
sumScore
float
32
=
0
joinNum
float
32
=
0
sumScore
float
64
=
0
joinNum
float
64
=
0
)
for
_
,
v
:=
range
companyAddScore
{
sumScore
+=
float32
(
stringTurnFloat64
(
v
[
"final_score"
])
)
sumScore
+=
stringTurnFloat64
(
v
[
"final_score"
]
)
joinNum
+=
1
}
...
...
cmd/static/company_info.go
View file @
26483060
package
main
var
(
currentScore
float
32
totalScore
[
7
]
float
32
currentScore
float
64
totalScore
[
7
]
float
64
)
...
...
@@ -19,8 +19,8 @@ func CompanyInfo() {
NumberOfSocial
()
var
(
sumScore
float
32
=
0
joinNum
float
32
=
0
sumScore
float
64
=
0
joinNum
float
64
=
0
)
//查找出所有不是0的分值
...
...
cmd/static/enterprise_credit.go
View file @
26483060
package
main
var
(
e_currentScore
float
32
e_totalScore
[
2
]
float
32
e_currentScore
float
64
e_totalScore
[
2
]
float
64
)
...
...
@@ -10,8 +10,8 @@ var(
func
EnterPriseCredit
()
{
var
(
sumScore
float
32
=
0
joinNum
float
32
=
0
sumScore
float
64
=
0
joinNum
float
64
=
0
)
IsEnterpriseOverdueWhether
()
...
...
cmd/static/history_bussiness.go
View file @
26483060
package
main
var
(
h_currentScore
float
32
h_totalScore
[
6
]
float
32
h_currentScore
float
64
h_totalScore
[
6
]
float
64
)
//历史交易情况(50分)
...
...
@@ -15,8 +15,8 @@ func HistoryBussiness() {
AverageMoneySixMonths
()
var
(
sumScore
float
32
=
0
joinNum
float
32
=
0
sumScore
float
64
=
0
joinNum
float
64
=
0
)
//查找出所有不是0的分值
...
...
internal/logic/common.go
0 → 100644
View file @
26483060
package
logic
import
"time"
func
getTimeStamp
()(
timestamp
int64
)
{
return
time
.
Now
()
.
Unix
()
}
\ No newline at end of file
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