lambdaQuery().apply(Objects.nonNull(days),"UNIX_TIMESTAMP(create_time) >= UNIX_TIMESTAMP('" + LocalDateTime.now().minusDays(days) + "')")
MybatisPLUS,根据时间作为条件进行查询
最新推荐文章于 2024-07-26 11:56:18 发布
lambdaQuery().apply(Objects.nonNull(days),"UNIX_TIMESTAMP(create_time) >= UNIX_TIMESTAMP('" + LocalDateTime.now().minusDays(days) + "')")