|
@@ -382,8 +382,6 @@ func (this *Analysis) ForDerive() {
|
|
"keywords": dKWord,
|
|
"keywords": dKWord,
|
|
"area": sql.Area,
|
|
"area": sql.Area,
|
|
"city": sql.City,
|
|
"city": sql.City,
|
|
- "minprice": fmt.Sprintf("%f", minPrice),
|
|
|
|
- "maxprice": fmt.Sprintf("%f", maxPrice),
|
|
|
|
"region": region,
|
|
"region": region,
|
|
"district": sql.District,
|
|
"district": sql.District,
|
|
"buyerclass": sql.Buyerclass,
|
|
"buyerclass": sql.Buyerclass,
|
|
@@ -396,6 +394,12 @@ func (this *Analysis) ForDerive() {
|
|
if startTime > 0 || endTime > 0 {
|
|
if startTime > 0 || endTime > 0 {
|
|
saveData["publishtime"] = fmt.Sprintf("%d_%d", startTime, endTime)
|
|
saveData["publishtime"] = fmt.Sprintf("%d_%d", startTime, endTime)
|
|
}
|
|
}
|
|
|
|
+ if minPrice > 0 {
|
|
|
|
+ saveData["minprice"] = fmt.Sprintf("%f", minPrice)
|
|
|
|
+ }
|
|
|
|
+ if maxPrice > 0 {
|
|
|
|
+ saveData["maxprice"] = fmt.Sprintf("%f", maxPrice)
|
|
|
|
+ }
|
|
id := db.Mgo.Save(dataexport.ExportTable, saveData)
|
|
id := db.Mgo.Save(dataexport.ExportTable, saveData)
|
|
this.ServeJson(NewResult(map[string]interface{}{
|
|
this.ServeJson(NewResult(map[string]interface{}{
|
|
"_id": encrypt.SE.Encode2Hex(id),
|
|
"_id": encrypt.SE.Encode2Hex(id),
|