controllers/fileController.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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{}