liuxiaolong
2019-07-31 aab79b3bc8f26b8afee6726dd5ae5b7652381a61
rm log
1个文件已修改
5 ■■■■■ 已修改文件
controllers/fileController.go 5 ●●●●● 补丁 | 查看 | 原始文档 | 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{}