Commit fc647ae6 by Joneq

修改历史数据

parent 8c26600a
......@@ -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)
}
......
......@@ -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
}
......
......@@ -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{
......
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