|
@@ -232,12 +232,10 @@ func getPingAn() {
|
|
website := qu.ObjToString(tmp["website"])
|
|
website := qu.ObjToString(tmp["website"])
|
|
company_phone := qu.ObjToString(tmp["company_phone"])
|
|
company_phone := qu.ObjToString(tmp["company_phone"])
|
|
company_email := qu.ObjToString(tmp["company_email"])
|
|
company_email := qu.ObjToString(tmp["company_email"])
|
|
- query := `INSERT INTO information.ent_info (id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email)
|
|
|
|
- VALUES (?, ?, ?, bitmapBuild(?), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
|
|
- // query := "INSERT INTO information.ent_info(id, company_id, company_name, company_label, company_address, area_code, city_code, district_code) VALUES(?,?,?,bitmapBuild(?),?,?,?,?)"
|
|
|
|
|
|
+ query := `INSERT INTO information.ent_info (id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email) VALUES(?, ?, ?, bitmapBuild(?), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
err := ent_util.ClickHouseConn.Exec(context.Background(), query, id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email)
|
|
err := ent_util.ClickHouseConn.Exec(context.Background(), query, id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email)
|
|
if err != nil {
|
|
if err != nil {
|
|
- log.Println(err, company_name)
|
|
|
|
|
|
+ log.Println(err, "clickhouse存入失败", company_name)
|
|
} else {
|
|
} else {
|
|
data := map[string]interface{}{
|
|
data := map[string]interface{}{
|
|
"_id": id,
|
|
"_id": id,
|
|
@@ -362,12 +360,10 @@ func getTQ() {
|
|
website := qu.ObjToString(tmp["website"])
|
|
website := qu.ObjToString(tmp["website"])
|
|
company_phone := qu.ObjToString(tmp["company_phone"])
|
|
company_phone := qu.ObjToString(tmp["company_phone"])
|
|
company_email := qu.ObjToString(tmp["company_email"])
|
|
company_email := qu.ObjToString(tmp["company_email"])
|
|
- query := `INSERT INTO information.ent_info (id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email)
|
|
|
|
- VALUES (?, ?, ?, bitmapBuild(?), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
|
|
- // query := "INSERT INTO information.ent_info(id, company_id, company_name, company_label, company_address, area_code, city_code, district_code) VALUES(?,?,?,bitmapBuild(?),?,?,?,?)"
|
|
|
|
|
|
+ query := `INSERT INTO information.ent_info (id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email) VALUES(?, ?, ?, bitmapBuild(?), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
err := ent_util.ClickHouseConn.Exec(context.Background(), query, id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email)
|
|
err := ent_util.ClickHouseConn.Exec(context.Background(), query, id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email)
|
|
if err != nil {
|
|
if err != nil {
|
|
- log.Println(err, company_name)
|
|
|
|
|
|
+ log.Println(err, "clickhouse存入失败", company_name)
|
|
} else {
|
|
} else {
|
|
data := map[string]interface{}{
|
|
data := map[string]interface{}{
|
|
"_id": id,
|
|
"_id": id,
|
|
@@ -493,11 +489,10 @@ func getMK() {
|
|
website := qu.ObjToString(tmp["website"])
|
|
website := qu.ObjToString(tmp["website"])
|
|
company_phone := qu.ObjToString(tmp["company_phone"])
|
|
company_phone := qu.ObjToString(tmp["company_phone"])
|
|
company_email := qu.ObjToString(tmp["company_email"])
|
|
company_email := qu.ObjToString(tmp["company_email"])
|
|
- query := `INSERT INTO information.ent_info (id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email)
|
|
|
|
- VALUES (?, ?, ?, bitmapBuild(?), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
|
|
|
|
+ query := `INSERT INTO information.ent_info (id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email) VALUES(?, ?, ?, bitmapBuild(?), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
err := ent_util.ClickHouseConn.Exec(context.Background(), query, id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email)
|
|
err := ent_util.ClickHouseConn.Exec(context.Background(), query, id, company_id, company_name, company_label, company_code, credit_no, org_code, tax_code, establish_date, legal_person, legal_person_caption, company_status, company_type, authority, issue_date, operation_startdate, operation_enddate, capital, company_address, business_scope, comeintime, updatetime, legal_person_type, real_capital, en_name, area_code, city_code, district_code, list_code, employee_no, website, company_phone, company_email)
|
|
if err != nil {
|
|
if err != nil {
|
|
- log.Println(err, company_name)
|
|
|
|
|
|
+ log.Println(err, "clickhouse存入失败", company_name)
|
|
} else {
|
|
} else {
|
|
data := map[string]interface{}{
|
|
data := map[string]interface{}{
|
|
"_id": id,
|
|
"_id": id,
|