Jianghan преди 9 месеца
родител
ревизия
fda0b2bcfe
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      api/internal/service/prListService.go

+ 1 - 1
api/internal/service/prListService.go

@@ -53,7 +53,7 @@ func GetMonitorList(req *types.PrMonitorListReq) (resultList *[]map[string]inter
 
 func GetCollectList(req *types.PrCollectListReq) (resultList []map[string]interface{}, total int64) {
 	scopeClass := FindBusiness(req.EntId, req.MgoUserId)
-	info := T.JianyuMysql.Find("bdcollection", map[string]interface{}{"userid": req.UserId}, "", `{id: 1}`, -1, -1)
+	info := T.JianyuMysql.Find("bdcollection", map[string]interface{}{"userid": req.UserId}, "", "id desc", -1, -1)
 	var ids []interface{}
 	if info == nil || len(*info) == 0 {
 		return make([]map[string]interface{}, 0), 0