|
@@ -238,17 +238,30 @@ func (this *Portrait) GetEntInfo(entId string) (map[string]interface{}, error) {
|
|
"legal_person": 1, //法人姓名
|
|
"legal_person": 1, //法人姓名
|
|
"company_phone": 1, //公司电话
|
|
"company_phone": 1, //公司电话
|
|
"company_name": 1, //公司名称
|
|
"company_name": 1, //公司名称
|
|
|
|
+ "currency": 1, //注册资本币种
|
|
})
|
|
})
|
|
if entinfo == nil || len(*entinfo) == 0 {
|
|
if entinfo == nil || len(*entinfo) == 0 {
|
|
return nil, errors.New("未查询到企业相关信息")
|
|
return nil, errors.New("未查询到企业相关信息")
|
|
}
|
|
}
|
|
|
|
+ unit := "万元"
|
|
|
|
+ if qutil.InterfaceToStr((*entinfo)["currency"]) != "人民币" {
|
|
|
|
+ unit = fmt.Sprintf("%s%s", "万", qutil.InterfaceToStr((*entinfo)["currency"]))
|
|
|
|
+ }
|
|
|
|
+ //switch qutil.InterfaceToStr((*entinfo)["currency"]) {
|
|
|
|
+ //case "美元":
|
|
|
|
+ // unit = "万美元"
|
|
|
|
+ //case "港币":
|
|
|
|
+ // unit = "万港币"
|
|
|
|
+ //case "澳币":
|
|
|
|
+ // unit = "万澳币"
|
|
|
|
+ //}
|
|
rData := map[string]interface{}{
|
|
rData := map[string]interface{}{
|
|
"type": (*entinfo)["company_type"],
|
|
"type": (*entinfo)["company_type"],
|
|
"status": (*entinfo)["company_status"],
|
|
"status": (*entinfo)["company_status"],
|
|
//"authority": (*entinfo)["authority"],
|
|
//"authority": (*entinfo)["authority"],
|
|
"creditNo": (*entinfo)["credit_no"],
|
|
"creditNo": (*entinfo)["credit_no"],
|
|
"taxCode": (*entinfo)["tax_code"],
|
|
"taxCode": (*entinfo)["tax_code"],
|
|
- "capital": (*entinfo)["capital"],
|
|
|
|
|
|
+ "capital": fmt.Sprintf("%v%s", (*entinfo)["capital"], unit),
|
|
"employeeNo": (*entinfo)["employee_no"],
|
|
"employeeNo": (*entinfo)["employee_no"],
|
|
"address": (*entinfo)["company_address"],
|
|
"address": (*entinfo)["company_address"],
|
|
"scope": (*entinfo)["business_scope"],
|
|
"scope": (*entinfo)["business_scope"],
|