|
@@ -25,7 +25,7 @@ func CheckSave(userid, filterId string) {
|
|
|
}
|
|
|
data := make(map[string]interface{})
|
|
|
query := map[string]interface{}{
|
|
|
- "user_id": userid,
|
|
|
+ "s_userid": userid,
|
|
|
}
|
|
|
area, _ := (*dataMap)["area"].([]interface{})
|
|
|
data["area"] = ArrSort(area)
|
|
@@ -41,12 +41,13 @@ func CheckSave(userid, filterId string) {
|
|
|
data["buyer"] = ArrSort(buyer)
|
|
|
winner, _ := (*dataMap)["winner"].([]interface{})
|
|
|
data["winner"] = ArrSort(winner)
|
|
|
- keyword, _ := (*dataMap)["keyword"].([]interface{})
|
|
|
- data["keyword"] = keywordSort(util.ObjArrToMapArr(keyword))
|
|
|
+ keyword, _ := (*dataMap)["keywords"].([]interface{})
|
|
|
+ data["keywords"] = keywordSort(util.ObjArrToMapArr(keyword))
|
|
|
|
|
|
data["publishtime"] = util.InterfaceToStr((*dataMap)["publishtime"])
|
|
|
data["selectType"] = ValueSort(util.InterfaceToStr((*dataMap)["selectType"]))
|
|
|
data["minprice"] = util.InterfaceToStr((*dataMap)["minprice"])
|
|
|
+ data["isTitle"] = util.IntAll((*dataMap)["isTitle"])
|
|
|
data["maxprice"] = util.InterfaceToStr((*dataMap)["maxprice"])
|
|
|
data["subtype"] = ValueSort(util.InterfaceToStr((*dataMap)["subtype"]))
|
|
|
|
|
@@ -59,12 +60,15 @@ func CheckSave(userid, filterId string) {
|
|
|
"update_time": tm.Unix(),
|
|
|
}}, false, false)
|
|
|
} else {
|
|
|
- data["create_time"] = tm.Unix()
|
|
|
- data["update_time"] = tm.Unix()
|
|
|
- data["in_key"] = inKey
|
|
|
- data["filter_id"] = filterId
|
|
|
- data["user_id"] = userid
|
|
|
- qutil.MQFW.Save("export_condition", data)
|
|
|
+ delete(*dataMap, "_id")
|
|
|
+ delete(*dataMap, "comeinfrom")
|
|
|
+ delete(*dataMap, "comeintime")
|
|
|
+
|
|
|
+ (*dataMap)["create_time"] = tm.Unix()
|
|
|
+ (*dataMap)["update_time"] = tm.Unix()
|
|
|
+ (*dataMap)["in_key"] = inKey
|
|
|
+ (*dataMap)["filter_id"] = filterId
|
|
|
+ qutil.MQFW.Save("export_condition", *dataMap)
|
|
|
}
|
|
|
}
|
|
|
|