|
@@ -698,7 +698,6 @@ func timedTaskOnce() {
|
|
|
//取-符合-发布时间半年内的数据
|
|
|
if util.IntAll(tmp_start["dataging"]) == 1 {
|
|
|
pubtime := util.Int64All(tmp_start["publishtime"])
|
|
|
- //log.Println(startNum,"--",pubtime,"--",between_time)
|
|
|
if pubtime > 0 && pubtime >= between_time {
|
|
|
lasttime = pubtime
|
|
|
log.Println("找到第一条符合条件的数据")
|
|
@@ -735,7 +734,7 @@ func timedTaskOnce() {
|
|
|
pre_publishtime := int64(0)
|
|
|
for tmp := make(map[string]interface{}); it.Next(&tmp); n++ {
|
|
|
if n%10000 == 0 {
|
|
|
- log.Println("current:", n, tmp["_id"], "repeateN:", repeateN)
|
|
|
+ log.Println("定时任务判重当前数量current:", n, tmp["_id"], "repeateN:", repeateN)
|
|
|
}
|
|
|
|
|
|
//log.Println("当前测试重复数量:",repeateN)
|
|
@@ -772,7 +771,7 @@ func timedTaskOnce() {
|
|
|
info := NewInfo(tmp)
|
|
|
if !LowHeavy { //是否进行低质量数据判重
|
|
|
if invalidData(info.buyer, info.projectname, info.projectcode, info.contractnumber) {
|
|
|
- log.Println("测试-无效数据")
|
|
|
+ log.Println("无效数据")
|
|
|
updateExtract = append(updateExtract, []map[string]interface{}{
|
|
|
map[string]interface{}{
|
|
|
"_id": tmp["_id"],
|
|
@@ -793,7 +792,7 @@ func timedTaskOnce() {
|
|
|
}
|
|
|
|
|
|
b, source, reason := DM.check(info)
|
|
|
- log.Println("判重结果", b, reason)
|
|
|
+ //log.Println("判重结果", b, reason)
|
|
|
if b { //有重复,生成更新语句,更新抽取和更新招标
|
|
|
repeateN++
|
|
|
var is_replace = false
|