Commit bc1e423f by 朱继来

调整公司地址

parent 953fe7c6
Showing with 12 additions and 4 deletions
......@@ -99,10 +99,18 @@ func updateData() (err error) {
curr_time := time.Now().Unix()
// 更新发票公司表
_, 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)
if com_addr == "" {
_, err = db.CrmDB.Exec("update lie_invoice_company set 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 = ?", 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 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