|
@@ -66,9 +66,6 @@ func biddingAllTask(data []byte, mapInfo map[string]interface{}) {
|
|
|
var compare bson.M
|
|
|
bnil := false
|
|
|
for tmp := make(map[string]interface{}); query.Next(tmp); n++ {
|
|
|
- if deldata := qutil.IntAll(tmp["del"]); deldata == 1 { //临时:重复数据不生索引
|
|
|
- continue
|
|
|
- }
|
|
|
update := map[string]interface{}{}
|
|
|
del := map[string]interface{}{} //记录extract没有值而bidding中有值的字段
|
|
|
//对比方法----------------
|
|
@@ -177,6 +174,11 @@ func biddingAllTask(data []byte, mapInfo map[string]interface{}) {
|
|
|
for tk, tv := range update {
|
|
|
tmp[tk] = tv
|
|
|
}
|
|
|
+ if tmp["supervisorrate"] != nil { //临时处理supervisorrate抽取类型为string不生索引
|
|
|
+ if _, ok := tmp["supervisorrate"].(string); ok { //supervisorrate数据为string类型
|
|
|
+ delete(tmp, "supervisorrate")
|
|
|
+ }
|
|
|
+ }
|
|
|
//对projectscope字段的索引处理
|
|
|
ps, _ := tmp["projectscope"].(string)
|
|
|
// if ps == "" {
|