|
@@ -7,7 +7,6 @@ import (
|
|
"fmt"
|
|
"fmt"
|
|
es "github.com/olivere/elastic/v7"
|
|
es "github.com/olivere/elastic/v7"
|
|
"github.com/shopspring/decimal"
|
|
"github.com/shopspring/decimal"
|
|
- "go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
"log"
|
|
"log"
|
|
"net/http"
|
|
"net/http"
|
|
"reflect"
|
|
"reflect"
|
|
@@ -69,7 +68,7 @@ func FormatNumber(tmp map[string]interface{}) {
|
|
}
|
|
}
|
|
|
|
|
|
// 获取最新年报
|
|
// 获取最新年报
|
|
-func Sort_year_report(year_report []interface) map[string]interface{} {
|
|
|
|
|
|
+func Sort_year_report(year_report []interface{}) map[string]interface{} {
|
|
new_year_report := year_report[0]
|
|
new_year_report := year_report[0]
|
|
for i := 0; i < len(year_report); i++ {
|
|
for i := 0; i < len(year_report); i++ {
|
|
if common.IntAll(new_year_report.(map[string]interface{})["report_year"]) < common.IntAll(year_report[i].(map[string]interface{})["report_year"]) {
|
|
if common.IntAll(new_year_report.(map[string]interface{})["report_year"]) < common.IntAll(year_report[i].(map[string]interface{})["report_year"]) {
|