Commit 26483060 by Joneq

增加commonlogic

parent 4637f69d
......@@ -4,12 +4,12 @@ package main
func AddScore() {
var(
sumScore float32 = 0
joinNum float32 = 0
sumScore float64 = 0
joinNum float64 = 0
)
for _,v :=range companyAddScore{
sumScore += float32(stringTurnFloat64(v["final_score"]))
sumScore += stringTurnFloat64(v["final_score"])
joinNum += 1
}
......
package main
var(
currentScore float32
totalScore [7]float32
currentScore float64
totalScore [7]float64
)
......@@ -19,8 +19,8 @@ func CompanyInfo() {
NumberOfSocial()
var(
sumScore float32 = 0
joinNum float32 = 0
sumScore float64 = 0
joinNum float64 = 0
)
//查找出所有不是0的分值
......
package main
var(
e_currentScore float32
e_totalScore [2]float32
e_currentScore float64
e_totalScore [2]float64
)
......@@ -10,8 +10,8 @@ var(
func EnterPriseCredit() {
var(
sumScore float32 = 0
joinNum float32 = 0
sumScore float64 = 0
joinNum float64 = 0
)
IsEnterpriseOverdueWhether()
......
package main
var(
h_currentScore float32
h_totalScore [6]float32
h_currentScore float64
h_totalScore [6]float64
)
//历史交易情况(50分)
......@@ -15,8 +15,8 @@ func HistoryBussiness() {
AverageMoneySixMonths()
var(
sumScore float32 = 0
joinNum float32 = 0
sumScore float64 = 0
joinNum float64 = 0
)
//查找出所有不是0的分值
......
package logic
import "time"
func getTimeStamp()(timestamp int64) {
return time.Now().Unix()
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment