Commit bc1e423f by 朱继来

调整公司地址

parent 953fe7c6
Showing with 12 additions and 4 deletions
...@@ -99,10 +99,18 @@ func updateData() (err error) { ...@@ -99,10 +99,18 @@ func updateData() (err error) {
curr_time := time.Now().Unix() curr_time := time.Now().Unix()
// 更新发票公司表 // 更新发票公司表
_, err = db.CrmDB.Exec("update lie_invoice_company set com_addr = ?, establishment_time = ?, registered_capital = ?, com_organization = ?," + if com_addr == "" {
"legal_representative = ?, five_legal_change = ?, two_years_no_lawsuit = ?, total_credit_score = ?, ichunt_hunting_core = ?, blacklist_hit = ?, " + _, err = db.CrmDB.Exec("update lie_invoice_company set establishment_time = ?, registered_capital = ?, com_organization = ?," +
"risk_type = ?, update_time = ? where com_name = ?", com_addr, establishment_time, registered_capital, com_organization, legal_representative, "legal_representative = ?, five_legal_change = ?, two_years_no_lawsuit = ?, total_credit_score = ?, ichunt_hunting_core = ?, blacklist_hit = ?, " +
five_legal_change, two_years_no_lawsuit, total_credit_score, ichunt_hunting_core, blacklist_hit, risk_type, curr_time, company.ComName) "risk_type = ?, update_time = ? where com_name = ?", 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)
} else {
_, 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 = ?, " +
"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)
}
var mobile []string = make([]string, 0) var mobile []string = make([]string, 0)
var isAtAll bool = false var isAtAll bool = false
......
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