|
@@ -362,17 +362,19 @@ func (p *ProjectTask) compareBCTABB(info *Info, cp *ProjectInfo, diffTime int64,
|
|
|
compareBudget = "A"
|
|
|
score += 1
|
|
|
score2 += 1
|
|
|
- } else if info.Budget == 0 && cp.Budget == 0 {
|
|
|
- compareBudget = "B"
|
|
|
}
|
|
|
+ // else if info.Budget == 0 && cp.Budget == 0 {
|
|
|
+ // compareBudget = "B"
|
|
|
+ // }
|
|
|
compareBidmount = "C"
|
|
|
if info.Bidamount > 0 && (info.Bidamount == cp.Bidamount || (cp.Budget > 0 && cp.Budget > info.Bidamount && (cp.Budget-info.Bidamount) < 0.1*cp.Budget)) {
|
|
|
compareBidmount = "A"
|
|
|
score += 1
|
|
|
score2 += 1
|
|
|
- } else if info.Bidamount == 0 && cp.Bidamount == 0 {
|
|
|
- compareBidmount = "B"
|
|
|
}
|
|
|
+ // else if info.Bidamount == 0 && cp.Bidamount == 0 {
|
|
|
+ // compareBidmount = "B"
|
|
|
+ // }
|
|
|
|
|
|
cp.score = score
|
|
|
return
|
|
@@ -693,7 +695,7 @@ func (p *ProjectTask) UpdateProject(tmp map[string]interface{}, thisinfo *Info,
|
|
|
//保留原数据吧
|
|
|
push := p.PushListInfo(tmp)
|
|
|
push["compareStr"] = comStr
|
|
|
- push["resVal"] = pInfo.pjVal
|
|
|
+ push["resVal"] = pInfo.resVal
|
|
|
push["pjVal"] = pInfo.pjVal
|
|
|
update["$push"] = map[string]interface{}{
|
|
|
"list": push,
|