|
@@ -169,8 +169,8 @@ func PackageDetail(j *ju.Job, e *ExtractTask, isSite bool, codeSite string) {
|
|
|
//ordertmp[ordertmpint[tmpindex]] 取中标候选人组
|
|
|
sonJobResult["winnerorder"] = ordertmp[ordertmpint[tmpindex]]
|
|
|
if sonJobResult["bidamount"] == nil || sonJobResult["bidamount"].(float64) <= 0 {
|
|
|
- if j.Winnerorder[0]["price"] != nil {
|
|
|
- moneys := clear.ObjToMoney([]interface{}{j.Winnerorder[0]["price"], ""})
|
|
|
+ if ordertmp[ordertmpint[tmpindex]][0]["price"] != nil {
|
|
|
+ moneys := clear.ObjToMoney([]interface{}{ordertmp[ordertmpint[tmpindex]][0]["price"], ""})
|
|
|
if len(moneys) > 0 && moneys[len(moneys)-1].(bool) {
|
|
|
if vf, ok := moneys[0].(float64); ok {
|
|
|
sonJobResult["bidamount"] = vf
|
|
@@ -178,12 +178,12 @@ func PackageDetail(j *ju.Job, e *ExtractTask, isSite bool, codeSite string) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if sonJobResult["winner"] == "" {
|
|
|
- sonJobResult["winner"] = j.Winnerorder[0]["entname"]
|
|
|
+ if sonJobResult["winner"] == nil || sonJobResult["winner"] == "" {
|
|
|
+ sonJobResult["winner"] = ordertmp[ordertmpint[tmpindex]][0]["entname"]
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- if sonJobResult["winner"] == "" && len(j.Winnerorder) > 0 {
|
|
|
+ if (sonJobResult["winner"] == nil || sonJobResult["winner"] == "") && len(j.Winnerorder) > 0 {
|
|
|
if j.Winnerorder[0]["price"] != nil {
|
|
|
sonJobResult["bidamount"] = qu.Float64All(j.Winnerorder[0]["price"])
|
|
|
}
|