|
@@ -53,7 +53,11 @@ var (
|
|
winnerReg17 = regexp.MustCompile("(报价金额|投标金额|应答含税总价|预期中标价格)[::]?[\n]?([¥〇0-9\\.人民币零点壹贰叁肆伍陆柒捌玖拾佰仟万亿元圆角分整]+)")
|
|
winnerReg17 = regexp.MustCompile("(报价金额|投标金额|应答含税总价|预期中标价格)[::]?[\n]?([¥〇0-9\\.人民币零点壹贰叁肆伍陆柒捌玖拾佰仟万亿元圆角分整]+)")
|
|
winnerReg18 = regexp.MustCompile("([中|投]标候选人[弟|第])([1-9一二三四五])[\\s]?名[::]([\u4E00-\u9FA5]{4,20})([((].*公司[))])?[,,\\s]+投标报价[::]([0-9\\.\\s 万元]+)")
|
|
winnerReg18 = regexp.MustCompile("([中|投]标候选人[弟|第])([1-9一二三四五])[\\s]?名[::]([\u4E00-\u9FA5]{4,20})([((].*公司[))])?[,,\\s]+投标报价[::]([0-9\\.\\s 万元]+)")
|
|
winnerReg19 = regexp.MustCompile("([弟|第][1-9一二三四五]名(中标候选人)?|[弟|第][1-9一二三四五]中标候选人)[::]?([\u4E00-\u9FA5]{4,20}公司)[((]?[,,]?(报价|投标报价|投标含税总价)[::]?([0-9\\.\\s万元]+)")
|
|
winnerReg19 = regexp.MustCompile("([弟|第][1-9一二三四五]名(中标候选人)?|[弟|第][1-9一二三四五]中标候选人)[::]?([\u4E00-\u9FA5]{4,20}公司)[((]?[,,]?(报价|投标报价|投标含税总价)[::]?([0-9\\.\\s万元]+)")
|
|
- winnerReg19_1 = regexp.MustCompile("(第[一二三1-3]候选人)[::]([\u4E00-\u9FA5()()]{4,25}公司)[((]([0-9.,,万元]+)[))]")
|
|
|
|
|
|
+
|
|
|
|
+ //名称-金额
|
|
|
|
+ winnerReg_1 = regexp.MustCompile("(第[一二三1-3]候选人)[::]([\u4E00-\u9FA5()()]{4,25}公司)[((]([0-9.,,万元]+)[))]")
|
|
|
|
+ winnerReg_2 = regexp.MustCompile("(中标候选人第[一二三1-3][\\s]?名)[::]([\u4E00-\u9FA5()()]{4,25}公司)[,,]其他类型投标报价[::][不]?含税报价[\n]?[((]元[))][::][\n]?([0-9.,,万元]+)[,,]质量")
|
|
|
|
+ winnerReg_3 = regexp.MustCompile("([弟|第][1-9一二三四五]名(中标候选人)?|[弟|第][1-9一二三四五](中标|成交)候选人)[::\\s]+([\u4E00-\u9FA5]{4,20}公司)[,,;]?(报价|投标报价|投标含税总价|投标报含税总价)[为]?[::]?([0-9\\.\\s万元]+)")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -61,8 +65,10 @@ var (
|
|
|
|
|
|
//特殊格式转化
|
|
//特殊格式转化
|
|
winnerReg50 = regexp.MustCompile("(第[一二三]名)\n单位名称\n(.{4,20}公司)[\n\\s]+投标报价\n大写\n([\u4E00-\u9FA5]+)\n")
|
|
winnerReg50 = regexp.MustCompile("(第[一二三]名)\n单位名称\n(.{4,20}公司)[\n\\s]+投标报价\n大写\n([\u4E00-\u9FA5]+)\n")
|
|
|
|
+
|
|
winnerReg51 = regexp.MustCompile("(中标候选人第[1-9一二三四五])[\\s](名)")
|
|
winnerReg51 = regexp.MustCompile("(中标候选人第[1-9一二三四五])[\\s](名)")
|
|
winnerReg52 = regexp.MustCompile("(中标金额[::][0-9.]+)\n([万元]+)")
|
|
winnerReg52 = regexp.MustCompile("(中标金额[::][0-9.]+)\n([万元]+)")
|
|
|
|
+
|
|
winnerReg53 = regexp.MustCompile("中标候选人[\\s ](第一候选人)[\\s ](第二候选人)[\\s ]?(第三候选人)?\n单位名称[\\s ](.{4,20}公司)[\\s ](.{4,20}公司)[\\s ]?(.{4,20}公司)?\n投标价[((]万元[))]([\\s ]+)([0-9.]+)([\\s ]+)([0-9.]+)([\\s ]+)?([0-9.]+)?")
|
|
winnerReg53 = regexp.MustCompile("中标候选人[\\s ](第一候选人)[\\s ](第二候选人)[\\s ]?(第三候选人)?\n单位名称[\\s ](.{4,20}公司)[\\s ](.{4,20}公司)[\\s ]?(.{4,20}公司)?\n投标价[((]万元[))]([\\s ]+)([0-9.]+)([\\s ]+)([0-9.]+)([\\s ]+)?([0-9.]+)?")
|
|
winnerReg54 = regexp.MustCompile("(第[一二三1-3]中标候选人)[ \\s]([\u4E00-\u9FA5,]{4,20}公司)[ \\s](人民币|¥)([0-9,,.万元]+)")
|
|
winnerReg54 = regexp.MustCompile("(第[一二三1-3]中标候选人)[ \\s]([\u4E00-\u9FA5,]{4,20}公司)[ \\s](人民币|¥)([0-9,,.万元]+)")
|
|
winnerReg55 = regexp.MustCompile("排序\\s(中标候选人)名称\\s投标报价.*\n([1一])[\\s]+(.{4,20}公司)[\\s]+([0-9.]+).*\n([2二])[\\s]+(.{4,20}公司)[\\s]+([0-9.]+).*\n")
|
|
winnerReg55 = regexp.MustCompile("排序\\s(中标候选人)名称\\s投标报价.*\n([1一])[\\s]+(.{4,20}公司)[\\s]+([0-9.]+).*\n([2二])[\\s]+(.{4,20}公司)[\\s]+([0-9.]+).*\n")
|
|
@@ -145,7 +151,7 @@ func (wo *WinnerOrderEntity) Find(text string, flag bool, from int, isSite bool,
|
|
text = cleanWinnerReg2.ReplaceAllString(text,"${1}中标候选人:")
|
|
text = cleanWinnerReg2.ReplaceAllString(text,"${1}中标候选人:")
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+ //单位类型
|
|
text = winnerReg5.ReplaceAllString(text, "\n${3}:${1}\n")
|
|
text = winnerReg5.ReplaceAllString(text, "\n${3}:${1}\n")
|
|
text = winnerReg20.ReplaceAllString(text,"\n${4}:${2}\n")
|
|
text = winnerReg20.ReplaceAllString(text,"\n${4}:${2}\n")
|
|
text = winnerReg21.ReplaceAllString(text,"\n${3}成交候选人:${1}\n")
|
|
text = winnerReg21.ReplaceAllString(text,"\n${3}成交候选人:${1}\n")
|
|
@@ -154,7 +160,7 @@ func (wo *WinnerOrderEntity) Find(text string, flag bool, from int, isSite bool,
|
|
text = winnerReg23.ReplaceAllString(text,"\n${3}:${1}${2}\n")
|
|
text = winnerReg23.ReplaceAllString(text,"\n${3}:${1}${2}\n")
|
|
text = winnerReg24.ReplaceAllString(text,"\n${4}:${1}\n")
|
|
text = winnerReg24.ReplaceAllString(text,"\n${4}:${1}\n")
|
|
|
|
|
|
-
|
|
|
|
|
|
+ //带金额
|
|
text = winnerReg8.ReplaceAllString(text,"\n${1}:${3}\n中标金额:${5}\n")
|
|
text = winnerReg8.ReplaceAllString(text,"\n${1}:${3}\n中标金额:${5}\n")
|
|
text = winnerReg9.ReplaceAllString(text,"\n${1}:${3}\n中标金额:${5}\n")
|
|
text = winnerReg9.ReplaceAllString(text,"\n${1}:${3}\n中标金额:${5}\n")
|
|
text = winnerReg10.ReplaceAllString(text,"\n${1}:${3}\n中标金额:${2}\n")
|
|
text = winnerReg10.ReplaceAllString(text,"\n${1}:${3}\n中标金额:${2}\n")
|
|
@@ -166,7 +172,13 @@ func (wo *WinnerOrderEntity) Find(text string, flag bool, from int, isSite bool,
|
|
text = winnerReg17.ReplaceAllString(text,"\n中标金额:${2}\n")
|
|
text = winnerReg17.ReplaceAllString(text,"\n中标金额:${2}\n")
|
|
text = winnerReg18.ReplaceAllString(text,"\n${1}${2}名:${3}\n中标金额:${5}\n")
|
|
text = winnerReg18.ReplaceAllString(text,"\n${1}${2}名:${3}\n中标金额:${5}\n")
|
|
text = winnerReg19.ReplaceAllString(text,"\n${1}:${3}\n中标金额:${5}\n")
|
|
text = winnerReg19.ReplaceAllString(text,"\n${1}:${3}\n中标金额:${5}\n")
|
|
- text = winnerReg19_1.ReplaceAllString(text,"\n${1}:${2} 中标金额:${3}\n")
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //带金额
|
|
|
|
+ text = winnerReg_1.ReplaceAllString(text,"\n${1}:${2} 中标金额:${3}\n")
|
|
|
|
+ text = winnerReg_2.ReplaceAllString(text,"\n${1}:${2} 中标金额:${3}\n")
|
|
|
|
+ text = winnerReg_3.ReplaceAllString(text,"\n${1}:${4} 中标金额:${6}\n")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -185,7 +197,7 @@ func (wo *WinnerOrderEntity) Find(text string, flag bool, from int, isSite bool,
|
|
text = winnerReg50.ReplaceAllString(text,"\n中标候选人${1}\n中标单位:${2}\n中标金额:${3}\n")
|
|
text = winnerReg50.ReplaceAllString(text,"\n中标候选人${1}\n中标单位:${2}\n中标金额:${3}\n")
|
|
}
|
|
}
|
|
|
|
|
|
- text = winnerReg51.ReplaceAllString(text,"${1}${2}\n中标金额:${3}\n")
|
|
|
|
|
|
+ text = winnerReg51.ReplaceAllString(text,"${1}${2}")
|
|
text = winnerReg52.ReplaceAllString(text,"${1}${2}")
|
|
text = winnerReg52.ReplaceAllString(text,"${1}${2}")
|
|
|
|
|
|
text = winnerReg53.ReplaceAllString(text,"\n${1}:${4} 中标金额:${8} 万元\n${2}:${5} 中标金额:${10} 万元\n")
|
|
text = winnerReg53.ReplaceAllString(text,"\n${1}:${4} 中标金额:${8} 万元\n${2}:${5} 中标金额:${10} 万元\n")
|