|
@@ -98,6 +98,7 @@ func ExtractByUdp(sid, eid string, instanceId ...string) {
|
|
|
ext.InitDFA()
|
|
|
}
|
|
|
//质量审核
|
|
|
+ ext.InitAuditFields()
|
|
|
ext.InitAuditRule()
|
|
|
ext.InitAuditClass()
|
|
|
ext.InitAuditRecogField()
|
|
@@ -135,6 +136,11 @@ func ExtractByUdp(sid, eid string, instanceId ...string) {
|
|
|
if ext.TaskInfo.DB.Count(ext.TaskInfo.FromColl, query) > 0 {
|
|
|
list, _ := ext.TaskInfo.DB.Find(ext.TaskInfo.FromColl, query, nil, Fields, false, 0, limit)
|
|
|
for _, v := range *list {
|
|
|
+ if v["check_sensitive2"] != nil { //去除含敏感词数据
|
|
|
+ if v["check_sensitive2"].(string) != "" {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ }
|
|
|
//log.Println(v["_id"])
|
|
|
j := PreInfo(v)
|
|
|
ext.TaskInfo.ProcessPool <- true
|
|
@@ -151,6 +157,11 @@ func ExtractByUdp(sid, eid string, instanceId ...string) {
|
|
|
if ext.TaskInfo.DB.Count(ext.TaskInfo.FromColl+"_back", queryback) > 0 {
|
|
|
list2, _ := ext.TaskInfo.DB.Find(ext.TaskInfo.FromColl+"_back", queryback, nil, Fields, false, 0, limit)
|
|
|
for _, v := range *list2 {
|
|
|
+ if v["check_sensitive2"] != nil { //去除含敏感词数据
|
|
|
+ if v["check_sensitive2"].(string) != "" {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ }
|
|
|
//log.Println(v["_id"])
|
|
|
j := PreInfo(v)
|
|
|
ext.TaskInfo.ProcessPool <- true
|
|
@@ -172,6 +183,11 @@ func ExtractByUdp(sid, eid string, instanceId ...string) {
|
|
|
query := bson.M{"_id": bson.M{"$gte": bson.ObjectIdHex(sid), "$lte": bson.ObjectIdHex(eid)}}
|
|
|
list, _ := ext.TaskInfo.DB.Find(ext.TaskInfo.FromColl, query, nil, Fields, false, -1, -1)
|
|
|
for _, v := range *list {
|
|
|
+ if v["check_sensitive2"] != nil { //去除含敏感词数据
|
|
|
+ if v["check_sensitive2"].(string) != "" {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ }
|
|
|
//log.Println(v["_id"])
|
|
|
j := PreInfo(v)
|
|
|
ext.TaskInfo.ProcessPool <- true
|