|
@@ -107,8 +107,8 @@ func mainT() {
|
|
|
ObjectId("5e09c05f0cf41612e0626abc")
|
|
|
*/
|
|
|
log.Println("测试开始")
|
|
|
- sid = "5da3f31aa5cb26b9b798d3aa"
|
|
|
- eid = "5da418c4a5cb26b9b7e3e9a6"
|
|
|
+ sid = "596f127e5d11e1c7455cf2c0"
|
|
|
+ eid = "5970721a5d11e1c74565f930"
|
|
|
mapinfo := map[string]interface{}{}
|
|
|
if sid == "" || eid == "" {
|
|
|
log.Println("sid,eid参数不能为空")
|
|
@@ -199,6 +199,11 @@ func task(data []byte, mapInfo map[string]interface{}) {
|
|
|
if n%10000 == 0 {
|
|
|
log.Println("current:", n, tmp["_id"], "repeateN:", repeateN)
|
|
|
}
|
|
|
+ if util.IntAll(tmp["repeat"]) == 1 {
|
|
|
+ tmp = make(map[string]interface{})
|
|
|
+ repeateN++
|
|
|
+ continue
|
|
|
+ }
|
|
|
pool <- true
|
|
|
wg.Add(1)
|
|
|
go func(tmp map[string]interface{}) {
|
|
@@ -400,7 +405,7 @@ func historyTask(data []byte, mapInfo map[string]interface{}) {
|
|
|
minTime, maxTime := int64(0), int64(0)
|
|
|
for tmp := make(map[string]interface{}); it.Next(&tmp); {
|
|
|
//取出最大最小时间
|
|
|
- info_time:=tmp["comeintime"]
|
|
|
+ info_time := tmp["comeintime"]
|
|
|
if Is_Sort {
|
|
|
info_time = tmp["publishtime"]
|
|
|
}
|
|
@@ -885,7 +890,7 @@ func basicDataScore(v *Info, info *Info) bool {
|
|
|
if v.bidopentime != 0 {
|
|
|
m++
|
|
|
}
|
|
|
- if v.agencyaddr != "" {
|
|
|
+ if v.bidopenaddress != "" {
|
|
|
m++
|
|
|
}
|
|
|
if v.agency != "" {
|
|
@@ -916,7 +921,7 @@ func basicDataScore(v *Info, info *Info) bool {
|
|
|
if info.bidopentime != 0 {
|
|
|
n++
|
|
|
}
|
|
|
- if info.agencyaddr != "" {
|
|
|
+ if info.bidopenaddress != "" {
|
|
|
n++
|
|
|
}
|
|
|
if info.agency != "" {
|