zhangjinkun 2 mesi fa
parent
commit
39abb63dd8
2 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. 4 0
      README.md
  2. 3 3
      bidding/quotemode.go

+ 4 - 0
README.md

@@ -0,0 +1,4 @@
+提供标讯特定识别服务,支持内容如下
+1、识别标讯是多包、单包:1多包 -1单包 0不确定
+2、识别是否是联合体中标;true,false
+3、识别标讯报价模式:0整标报价模式 1单价模式 2费率模式 3上浮下浮模式

+ 3 - 3
bidding/quotemode.go

@@ -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