|
@@ -247,6 +247,10 @@ func (this *Portrait) GetEntInfo(entId string) (map[string]interface{}, error) {
|
|
if qutil.InterfaceToStr((*entinfo)["currency"]) != "人民币" {
|
|
if qutil.InterfaceToStr((*entinfo)["currency"]) != "人民币" {
|
|
unit = fmt.Sprintf("%s%s", "万", qutil.InterfaceToStr((*entinfo)["currency"]))
|
|
unit = fmt.Sprintf("%s%s", "万", qutil.InterfaceToStr((*entinfo)["currency"]))
|
|
}
|
|
}
|
|
|
|
+ capital := ""
|
|
|
|
+ if qutil.Float64All((*entinfo)["capital"]) > 0 {
|
|
|
|
+ capital = fmt.Sprintf("%d%s", int64(qutil.Float64All((*entinfo)["capital"])), unit)
|
|
|
|
+ }
|
|
//switch qutil.InterfaceToStr((*entinfo)["currency"]) {
|
|
//switch qutil.InterfaceToStr((*entinfo)["currency"]) {
|
|
//case "美元":
|
|
//case "美元":
|
|
// unit = "万美元"
|
|
// unit = "万美元"
|
|
@@ -261,7 +265,7 @@ func (this *Portrait) GetEntInfo(entId string) (map[string]interface{}, error) {
|
|
//"authority": (*entinfo)["authority"],
|
|
//"authority": (*entinfo)["authority"],
|
|
"creditNo": (*entinfo)["credit_no"],
|
|
"creditNo": (*entinfo)["credit_no"],
|
|
"taxCode": (*entinfo)["tax_code"],
|
|
"taxCode": (*entinfo)["tax_code"],
|
|
- "capital": fmt.Sprintf("%v%s", (*entinfo)["capital"], unit),
|
|
|
|
|
|
+ "capital": capital,
|
|
"employeeNo": (*entinfo)["employee_no"],
|
|
"employeeNo": (*entinfo)["employee_no"],
|
|
"address": (*entinfo)["company_address"],
|
|
"address": (*entinfo)["company_address"],
|
|
"scope": (*entinfo)["business_scope"],
|
|
"scope": (*entinfo)["business_scope"],
|