Commit f540ba69 by Joneq

增加法人和公司地址的记录

parent 8ca9f219
...@@ -50,8 +50,8 @@ func (d *dao)UpdateCompanyBaseInfoForTyc(c context.Context,updateInfo map[string ...@@ -50,8 +50,8 @@ func (d *dao)UpdateCompanyBaseInfoForTyc(c context.Context,updateInfo map[string
var( var(
execSql string execSql string
) )
execSql = "update `lie_com_basicinfos` set `customer_property` = ?, `establishment_time` = ?, `five_legal_change` = ?, `registered_capital` = ?, `social_security_participants` = ?, `two_years_no_lawsuit` = ? , `tyc_select_num` = ? , `tianyancha_json` = ? where com_credits_id = ? " execSql = "update `lie_com_basicinfos` set `customer_property` = ?, `establishment_time` = ?, `five_legal_change` = ?, `registered_capital` = ?, `social_security_participants` = ?, `two_years_no_lawsuit` = ? , `tyc_select_num` = ? , `tianyancha_json` = ?, `com_address` = ?, `legal_representative` = ? where com_credits_id = ? "
row,err := d.db.Exec(c,execSql,updateInfo["customer_property"],updateInfo["establishment_time"],updateInfo["five_legal_change"],updateInfo["registered_capital"],updateInfo["social_security_participants"],updateInfo["two_years_no_lawsuit"],updateInfo["tyc_select_num"],updateInfo["tianyancha_json"],updateInfo["com_credits_id"]) row,err := d.db.Exec(c,execSql,updateInfo["customer_property"],updateInfo["establishment_time"],updateInfo["five_legal_change"],updateInfo["registered_capital"],updateInfo["social_security_participants"],updateInfo["two_years_no_lawsuit"],updateInfo["tyc_select_num"],updateInfo["tianyancha_json"],updateInfo["com_address"],updateInfo["legal_representative"],updateInfo["com_credits_id"])
if err != nil { if err != nil {
log.Error("updateScoresdb.DemoExec.Exec(%s) error(%v)", execSql, err) log.Error("updateScoresdb.DemoExec.Exec(%s) error(%v)", execSql, err)
} }
......
...@@ -14,6 +14,8 @@ type TianYanChaCompanyInfo struct { ...@@ -14,6 +14,8 @@ type TianYanChaCompanyInfo struct {
CompanyOrgType string `json:"companyOrgType"` CompanyOrgType string `json:"companyOrgType"`
SocialStaffNum float64 `json:"socialStaffNum"` SocialStaffNum float64 `json:"socialStaffNum"`
RegCapital string `json:"regCapital"` RegCapital string `json:"regCapital"`
LegalPersonName string `json:"legalPersonName"`
RegLocation string `json:"regLocation"`
} }
type ResultStruct struct { type ResultStruct struct {
...@@ -46,6 +48,8 @@ func HttpGet(companyName string)(returnDatas map[string]string) { ...@@ -46,6 +48,8 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
returnData := make(map[string]string) returnData := make(map[string]string)
//成立时间 //成立时间
returnData["establishment_time"] = strconv.FormatFloat((companyTycInfo.Result.EstiblishTime/1000), 'f', -1, 64) returnData["establishment_time"] = strconv.FormatFloat((companyTycInfo.Result.EstiblishTime/1000), 'f', -1, 64)
returnData["legal_representative"] = companyTycInfo.Result.LegalPersonName
returnData["com_address"] = companyTycInfo.Result.RegLocation
returnData["tianyancha_json"] = string(respBody) returnData["tianyancha_json"] = string(respBody)
//公司性质 //公司性质
var companyOrgType string var companyOrgType string
......
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