|
@@ -43,13 +43,13 @@ func NewQuoteClassifier() *QuoteClassifier {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// QuoteMode 主判断方法,返回报价模式及判断依据
|
|
|
+// QuoteMode 主判断方法,返回报价模式及判断依据 0整标报价模式 1单价模式 2费率模式 3上浮下浮模式
|
|
|
func (c *QuoteClassifier) QuoteMode(doc BidDocument) (int, map[string]interface{}) {
|
|
|
result := make(map[string]interface{})
|
|
|
- quoteType := 0
|
|
|
+ quoteType := 0 //默认整标报价
|
|
|
for _, reg := range c.floatingRatePattern {
|
|
|
if reg.MatchString(doc.Content) {
|
|
|
- quoteType = 2
|
|
|
+ quoteType = 3
|
|
|
}
|
|
|
}
|
|
|
return quoteType, result
|