|
@@ -65,7 +65,8 @@ var (
|
|
|
winnerReg21 = regexp.MustCompile("(石城(.*公司|.*厂|.*有\n限公司))[0-9.]+([弟|第][一二三四五六七八九十0-9])成交[\n]?候选人")
|
|
|
winnerReg22 = regexp.MustCompile("投标人[::](.{4,20}公司)[\\s-]+标段[::][1-3][\\s-]+排名[::]([1-9])")
|
|
|
winnerReg23 = regexp.MustCompile("([\u4E00-\u9FA5]{4,20})\n(有限公司|公司)[\\s]+(第[一二三四五1-9]中[选|标]候选人)")
|
|
|
- winnerReg24 = regexp.MustCompile("[\\s\\n]+([\u4E00-\u9FA5]{4,20}公司)[\\s\\n]+(第[一二三四五六七八九十]中[选|标]?候选人)")
|
|
|
+ winnerReg24 = regexp.MustCompile("[\\s\\n]+([\u4E00-\u9FA5,]{4,30}([((]集团[))])?(公司|有限公司)|)[\\s\\n]+(第[一二三四五六七八九十]中[选|标]?候选人)")
|
|
|
+ //winnerReg24 = regexp.MustCompile("[\\s\\n]+(.{4,20}公司)[\\s\\n]+(第[一二三四五六七八九十]中[选|标]?候选人)")
|
|
|
|
|
|
|
|
|
winnerRegclear = regexp.MustCompile("(买方人员|经评审.*排名第[一二三四五六七八九十1-9]+)")
|
|
@@ -84,6 +85,10 @@ var (
|
|
|
nofferReg = regexp.MustCompile("(费率|折扣率)")
|
|
|
nobidValReg = regexp.MustCompile("^(\\d{2}%|[0-9]+\\.[0-9]+%)$")
|
|
|
|
|
|
+
|
|
|
+ //特殊 - 不分割
|
|
|
+ winnerNoSplitReg = regexp.MustCompile("^(第[一二三四五六七八九十]中[选|标]?候选人)[::]([\u4E00-\u9FA5]{4,20}([((]集团[))])?(有限公司|公司))[,,]([\u4E00-\u9FA5]{4,20}([((]集团[))])?(有限公司|公司))$")
|
|
|
+
|
|
|
)
|
|
|
|
|
|
/*
|
|
@@ -105,7 +110,7 @@ func (wo *WinnerOrderEntity) Find(text string, flag bool, from int, isSite bool,
|
|
|
text = strings.ReplaceAll(text,"有\n限公司","有限公司")
|
|
|
text = winnerReg22.ReplaceAllString(text,"\n中标候选人第${2}名:${1}\n")
|
|
|
text = winnerReg23.ReplaceAllString(text,"\n${3}:${1}${2}\n")
|
|
|
- text = winnerReg24.ReplaceAllString(text,"\n${2}:${1}\n")
|
|
|
+ text = winnerReg24.ReplaceAllString(text,"\n${4}:${1}\n")
|
|
|
|
|
|
|
|
|
|
|
@@ -230,6 +235,7 @@ func (wo *WinnerOrderEntity) getText(text string, blocks []string, reg_2 *regexp
|
|
|
if rightIndex == -1 {
|
|
|
return rdata
|
|
|
}
|
|
|
+
|
|
|
for i, rightIndex := range rightIndexs {
|
|
|
text = blocks[rightIndex]
|
|
|
warpCount := wo.interceptText(winnerFlag[i].indexs, text)
|
|
@@ -276,8 +282,13 @@ func (wo *WinnerOrderEntity) getText(text string, blocks []string, reg_2 *regexp
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- v = toWarpReg.ReplaceAllString(v, "\n")
|
|
|
- text += v
|
|
|
+ if !winnerNoSplitReg.MatchString(v) {
|
|
|
+ v = toWarpReg.ReplaceAllString(v, "\n")
|
|
|
+ text += v
|
|
|
+ }else {
|
|
|
+ text += v
|
|
|
+ }
|
|
|
+
|
|
|
if (!reg_2.MatchString(v) || !colonEndReg.MatchString(v)) && k < len(lines)-1 {
|
|
|
text += "\n"
|
|
|
}
|