xuzhiheng %!s(int64=4) %!d(string=hai) anos
pai
achega
35e2ef3198
Modificáronse 2 ficheiros con 7 adicións e 9 borrados
  1. 2 4
      service/projects.go
  2. 5 5
      static/templates/peojectListDetail.html

+ 2 - 4
service/projects.go

@@ -5,16 +5,14 @@ import (
 	"fmt"
 	"sfbase/core"
 	"sfbase/elastic"
-	"sfbase/global"
 	"sfbase/utils"
 	"sfis/db"
 	"sfis/model"
 
+	"log"
 	"strconv"
 	"strings"
 	"time"
-
-	"go.uber.org/zap"
 )
 
 var (
@@ -186,7 +184,7 @@ func GetAllByNgram(Es *elastic.Elastic, index, itype, qstr, findfields, order, f
 		if start > -1 {
 			qstr = qstr[:len(qstr)-1] + `,"from":` + strconv.Itoa(start) + `,"size":` + strconv.Itoa(limit) + "}"
 		}
-		global.Logger.Info("GetAllByNgram方法es查询", zap.Any("es语句", qstr))
+		log.Println("es语句", qstr)
 		return Es.Get(index, itype, qstr)
 	} else {
 		return nil, nil

+ 5 - 5
static/templates/peojectListDetail.html

@@ -16,9 +16,9 @@
         <tr>
             <th style="width: 5%;">序号</th>
             <th style="width: 10%">项目标识</th>
-            <th style="width: 5%">项目名称</th>
+            <th style="width: 10%">项目名称</th>
             <th style="width: 5%">项目代码</th>
-            <th style="width: 15%">中标单位</th>
+            <th style="width: 5%">中标单位</th>
             <th style="width: 5%">采购单位</th>
             <th style="width: 5%">采购单位电话</th>
             <th style="width: 5%">采购单位联系人</th>
@@ -29,9 +29,9 @@
             <th style="width: 5%">预算金额(元)</th>
             <th style="width: 5%">省份</th>
             <th style="width: 5%">城市</th>
-            <th style="width: 15%">中标信息列表</th>
-            <th style="width: 15%">原链接</th>
-            <th style="width: 15%">剑鱼标讯链接</th>
+            <th style="width: 5%">中标信息列表</th>
+            <th style="width: 5%">原链接</th>
+            <th style="width: 5%">剑鱼标讯链接</th>
         </tr>
         <tbody class="box">