TimeUtils 新增多语言参数,formatDateAgo 重命名为 formatTime

This commit is contained in:
thinkgem
2022-04-22 14:50:38 +08:00
parent a0d6ef9097
commit b31364a794
5 changed files with 46 additions and 18 deletions

View File

@@ -62,7 +62,7 @@ public class FrontSearchController extends BaseController{
parmas.put("siteCode", siteCode);
}
page = articleService.searchPage(page, q, qand, qnot, bd, ed, parmas);
page.setPageInfo("匹配结果,共耗时 " + TimeUtils.formatDateAgo(System.currentTimeMillis() - start) + "");
page.setPageInfo("匹配结果,共耗时 " + TimeUtils.formatTime(System.currentTimeMillis() - start) + "");
model.addAttribute("page", page);
}