liuxiaolong
2019-07-31 aab79b3bc8f26b8afee6726dd5ae5b7652381a61
controllers/fileController.go
@@ -283,7 +283,7 @@
         resultList = append(resultList,cr)
      }
   }
   logger.Debug("GetCompareDataTwice.data:",resultList)
   //logger.Debug("GetCompareDataTwice.data:",resultList)
   service.SortByScore(resultList)
   from := (arg.Page-1)*arg.Size
   to := from + arg.Size
@@ -296,7 +296,8 @@
      if to <= len(resultList) {
         m["totalList"] = resultList[from:to]
      } else {
         m["totalList"] = resultList[from:len(resultList)]
         lte := len(resultList)
         m["totalList"] = resultList[from:lte]
      }
   } else {
      m["totalList"] = []service.CompareResult{}