|
@@ -134,6 +134,16 @@ func taskInfoA(searchResult *es.SearchResult, wg *sync.WaitGroup, countDocs *int
|
|
arr = append(arr, p)
|
|
arr = append(arr, p)
|
|
}
|
|
}
|
|
tpmp["p_projects"] = arr
|
|
tpmp["p_projects"] = arr
|
|
|
|
+ if tmp["bidamount"] != nil {
|
|
|
|
+ save["sortprice"] = tmp["bidamount"]
|
|
|
|
+ save["bidamount"] = tmp["bidamount"]
|
|
|
|
+ if save["budget"] != nil {
|
|
|
|
+ save["budget"] = tmp["budget"]
|
|
|
|
+ }
|
|
|
|
+ } else if tmp["budget"] != nil {
|
|
|
|
+ save["sortprice"] = tmp["budget"]
|
|
|
|
+ save["budget"] = tmp["budget"]
|
|
|
|
+ }
|
|
delete(save, "buyerperson")
|
|
delete(save, "buyerperson")
|
|
delete(save, "buyertel")
|
|
delete(save, "buyertel")
|
|
save["results"] = append([]map[string]interface{}{}, tpmp)
|
|
save["results"] = append([]map[string]interface{}{}, tpmp)
|