Commit cd9dd1bc by 朱继来

调整

parent abd95186
Showing with 3 additions and 3 deletions
...@@ -84,7 +84,7 @@ func updateData() (err error) { ...@@ -84,7 +84,7 @@ func updateData() (err error) {
body, err := ioutil.ReadAll(resp.Body) body, err := ioutil.ReadAll(resp.Body)
erp_com_sn := gjson.Get(string(body), "com_credit.erp_company_code").String() // ERP编码 // erp_com_sn := gjson.Get(string(body), "com_credit.erp_company_code").String() // ERP编码
com_addr := gjson.Get(string(body), "com_basic_info.com_address").String() // 公司地址 com_addr := gjson.Get(string(body), "com_basic_info.com_address").String() // 公司地址
establishment_time := gjson.Get(string(body), "com_basic_info.establishment_time").Int() // 成立时间 establishment_time := gjson.Get(string(body), "com_basic_info.establishment_time").Int() // 成立时间
registered_capital := gjson.Get(string(body), "com_basic_info.registered_capital").Float() // 注册资本 registered_capital := gjson.Get(string(body), "com_basic_info.registered_capital").Float() // 注册资本
...@@ -99,9 +99,9 @@ func updateData() (err error) { ...@@ -99,9 +99,9 @@ func updateData() (err error) {
curr_time := time.Now().Unix() curr_time := time.Now().Unix()
// 更新发票公司表 // 更新发票公司表
_, err = db.CrmDB.Exec("update lie_invoice_company set erp_com_sn = ?, com_addr = ?, establishment_time = ?, registered_capital = ?, com_organization = ?," + _, err = db.CrmDB.Exec("update lie_invoice_company set com_addr = ?, establishment_time = ?, registered_capital = ?, com_organization = ?," +
"legal_representative = ?, five_legal_change = ?, two_years_no_lawsuit = ?, total_credit_score = ?, ichunt_hunting_core = ?, blacklist_hit = ?, " + "legal_representative = ?, five_legal_change = ?, two_years_no_lawsuit = ?, total_credit_score = ?, ichunt_hunting_core = ?, blacklist_hit = ?, " +
"risk_type = ?, update_time = ? where com_name = ?", erp_com_sn, com_addr, establishment_time, registered_capital, com_organization, legal_representative, "risk_type = ?, update_time = ? where com_name = ?", com_addr, establishment_time, registered_capital, com_organization, legal_representative,
five_legal_change, two_years_no_lawsuit, total_credit_score, ichunt_hunting_core, blacklist_hit, risk_type, curr_time, company.ComName) five_legal_change, two_years_no_lawsuit, total_credit_score, ichunt_hunting_core, blacklist_hit, risk_type, curr_time, company.ComName)
var mobile []string = make([]string, 0) var mobile []string = make([]string, 0)
......
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