Commit 5169c749 by Joneq

判断sql插入限制

parent 3a62a37f
......@@ -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 id > 4906 "); err != nil {
if rows, err = d.db.Query(ctx, "SELECT "+SqlField+" FROM lie_com_credits where id > 4907 "); err != nil {
err = errors.WithStack(err)
return
}
......
......@@ -113,10 +113,6 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
returnData["tianyancha_json"] += "||||"+string(respBody)
}
if len(returnData["tianyancha_json"]) > 21000 {
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