Jianghan пре 11 месеци
родитељ
комит
ce8ebc6748
2 измењених фајлова са 2 додато и 3 уклоњено
  1. 1 1
      CMPlatform/history/biddingRepeat.go
  2. 1 2
      CMPlatform/util/util.go

+ 1 - 1
CMPlatform/history/biddingRepeat.go

@@ -29,7 +29,7 @@ func (this *HistoryData) BiddingRepeat(historyId string) {
 		if ok && data != nil && *data != nil {
 			for _, v := range *data {
 				count += 1
-				log.Debug("第" + fmt.Sprintln(count) + "条")
+				log.Debug("第" + fmt.Sprint(count) + "条")
 				if count%500 == 0 {
 					log.Debug("BiddingRepeat", zap.Int("count", count))
 					msg += fmt.Sprintln(count)

+ 1 - 2
CMPlatform/util/util.go

@@ -7,7 +7,6 @@ import (
 	"fmt"
 	es "github.com/olivere/elastic/v7"
 	"github.com/shopspring/decimal"
-	"go.mongodb.org/mongo-driver/bson/primitive"
 	"log"
 	"net/http"
 	"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]
 	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"]) {