|
@@ -50,11 +50,11 @@ var (
|
|
|
func (l *DeskAnalysisReport) ImportantNews() {
|
|
|
defer qutil.Catch()
|
|
|
rData := func() interface{} {
|
|
|
- //res := redis.Get("limitation", "important_news")
|
|
|
- //if res != nil {
|
|
|
- // resData, _ := res.([]interface{})
|
|
|
- // return qutil.ObjArrToMapArr(resData)
|
|
|
- //}
|
|
|
+ res := redis.Get("limitation", "important_news")
|
|
|
+ if res != nil {
|
|
|
+ resData, _ := res.([]interface{})
|
|
|
+ return qutil.ObjArrToMapArr(resData)
|
|
|
+ }
|
|
|
columnCode, _ := config.Sysconfig["columnCode"].(map[string]interface{})
|
|
|
queryMap := map[string]interface{}{"s_contenttype": qutil.InterfaceToStr(columnCode["招投标攻略"]), "s_secondclassifytype": "zbjq", "i_status": 1, "releasetime": map[string]interface{}{"$lt": time.Now().Unix()}}
|
|
|
data, _ := mongodb.Find("content", queryMap, `{"releasetime":-1}`, `{"_id":1,"s_title":1,"releasetime":1,"l_createdate":1}`, false, 0, 10)
|