Răsfoiți Sursa

格式化代码

jiaojiao7 4 ani în urmă
părinte
comite
7c81131116
3 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 1 1
      src/history/historytask.go
  2. 2 2
      src/history/util_history.go
  3. 2 2
      src/service/second_push.go

+ 1 - 1
src/history/historytask.go

@@ -274,7 +274,7 @@ func (this *HistoryData) ProductData() {
 		// 限制multi_match 个数小于1000个
 		s_esquery := qu.ObjToString((tag)["s_esquery"])
 		multi_match_count := strings.Count(s_esquery, "multi_match")
-		fmt.Println("multi_match",multi_match_count,s_esquery)
+		//fmt.Println("multi_match", multi_match_count, s_esquery)
 		if multi_match_count > 1000 {
 			this.ServeJson(map[string]interface{}{
 				"rep": false,

+ 2 - 2
src/history/util_history.go

@@ -1338,8 +1338,8 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string, isfile, isHen
 				}
 			}
 			//fname := t + ".xlsx"
-			fname := fmt.Sprintf("%s_%s_%s.xlsx", fn, t,qu.GetRandom(4))
-			log.Println("fname",fname)
+			fname := fmt.Sprintf("%s_%s_%s.xlsx", fn, t, qu.GetRandom(4))
+			log.Println("fname", fname)
 			err = xf.Save(dir + fname)
 			if err != nil {
 				log.Println("xls error", fname)

+ 2 - 2
src/service/second_push.go

@@ -671,7 +671,7 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
 						row.AddCell().SetValue(v["projectname"]) //项目名称
 						row.AddCell().SetValue(v["buyer"])       //采购单位
 						row.AddCell().SetValue(v["buyer_type"])  //采购单位类别---私有标签tagname
-						if v["bidamount"] != nil {               //中标金额
+						if v["bidamount"] != nil { //中标金额
 							row.AddCell().SetFloat(qu.Float64All(v["bidamount"]))
 						} else {
 							row.AddCell()
@@ -728,7 +728,7 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
 					log.Println("mkdir err", dir)
 				}
 			}
-			fname := fmt.Sprintf("%s_%s_%s.xlsx", fn, t,qu.GetRandom(4))
+			fname := fmt.Sprintf("%s_%s_%s.xlsx", fn, t, qu.GetRandom(4))
 			log.Println("fname", fname)
 			err = newFile.Save(dir + fname)
 			if err != nil {