|
@@ -6,6 +6,7 @@ package pretreated
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
"jy/util"
|
|
|
+ "log"
|
|
|
//"log"
|
|
|
"strings"
|
|
|
|
|
@@ -88,7 +89,7 @@ func processTableInBlock(bl *util.Block, job *util.Job) {
|
|
|
job.HasTable = 1
|
|
|
//添加标识:文本中有table
|
|
|
tabres := AnalyTableV2(tab, job.Category, bl.Title, tab.Text(), 2, job.SourceMid, job.RuleBlock) //解析表格入口 返回:汇总表格对象
|
|
|
- processTableResult(tabres, bl, job) //分析table解析结果
|
|
|
+ processTableResult(tabres, bl, job) //分析table解析结果
|
|
|
if bl.Title == "" && tabres.BlockTag != "" {
|
|
|
bl.Title = tabres.BlockTag
|
|
|
}
|
|
@@ -178,6 +179,7 @@ func processTableResult(tabres *TableResult, block *util.Block, job *util.Job) {
|
|
|
}
|
|
|
//处理中标人排序
|
|
|
wror := []map[string]interface{}{}
|
|
|
+ log.Println(tabres.WinnerOrder)
|
|
|
for _, v := range tabres.WinnerOrder {
|
|
|
entName, _ := v["entname"].(string)
|
|
|
v["entname"] = winnerOrderEntity.clear("中标单位", entName)
|