maxiaoshan 5 年 前
コミット
c4715e91c7

+ 1 - 1
dataclean/src/config.json

@@ -11,7 +11,7 @@
             "servers": "192.168.3.207:27082",
             "size": 5,
             "name": "mxs",
-            "coll": "bidamount"
+            "coll": "test1"
         },
         "project": {
             "servers": "192.168.3.207:27081",

+ 0 - 6
dataclean/src/service/bidamount.go

@@ -21,18 +21,14 @@ func (d *ResultInfo) BidAmount(data map[string]interface{}) {
 	result := bidamount                                   //结果
 	budget, _ := data["budget"].(float64)                 //预算
 	supervisorrate, _ := data["supervisorrate"].(float64) //费率
-	//log.Println(bidamount, budget, supervisorrate)
 	//1.注册资本
 	b1, n1 := ClearByRegisterCapital(bidamount, 0, 20.0)
-	//qu.Debug("1111", b1, n1)
 	bidamount_tab["fund"] = n1
 	//2.与预算的比例
 	b2, n2 := ClearByBudretProportion(budget, bidamount)
-	//qu.Debug("2222", b2, n2)
 	bidamount_tab["ratio"] = n2
 	//3.中标金额费率
 	b3, n3, val3 := ClearBySupervisorrate(budget, bidamount, supervisorrate)
-	//qu.Debug("3333", b3, n3, val3)
 	bidamount_tab["rate"] = n3
 
 	if !b1 && !b2 && !b3 { //均不满足要求,更改中标金额 false:1 false:0
@@ -43,7 +39,6 @@ func (d *ResultInfo) BidAmount(data map[string]interface{}) {
 			result = 0
 			bidamount_by = "logic"
 		}
-		//qu.Debug("result====", result, bidamount)
 
 		if bidamount != result { //排除抽取数据为空的情况
 			if result == 0 {
@@ -100,7 +95,6 @@ func ClearBySupervisorrate(budget, bidamount, supervisorrate float64) (bool, int
 	}
 	tb := budget * math.Pow10(6)
 	ts := supervisorrate * math.Pow10(6)
-	qu.Debug(tb, ts)
 	tmpBidAmount := tb * ts / math.Pow10(12) //预算*费率
 	if bidamount == tmpBidAmount {
 		return true, 2, bidamount

+ 0 - 1
dataclean/src/service/fieldmain.go

@@ -67,7 +67,6 @@ func Fields(tmp map[string]interface{}) {
 	data := &ResultInfo{}
 	data.BidAmount(tmp) //中标金额清理
 	//其他字段清洗...
-	qu.Debug("flag=====", data.Flag)
 	if data.Flag > 0 { //有字段发生变化
 		ResultInfos = append(ResultInfos, data)
 	}