model.addAttribute("pvAll", puVisitPvService.getCount());
model.addAttribute("pvToday", puVisitPvService.getCount(new QueryWrapper<PuVisitPv>().apply("to_days(create_date) = to_days(now())")));
model.addAttribute("pvWeek", puVisitPvService.getCount(new QueryWrapper<PuVisitPv>().apply("yearweek(create_date) = yearweek(now())")));
model.addAttribute("pvMonth", puVisitPvService.getCount(new QueryWrapper<PuVisitPv>().apply("date_format(create_date, '%Y%m') = date_format(now(), '%Y%m')")));
按年月日查询数据
最新推荐文章于 2022-12-02 17:23:36 发布