添加查询新注册用户信息接口

parent a5242e97
......@@ -20,7 +20,7 @@ public interface IUserRepository extends JpaRepository<User, Long>, JpaSpecifica
User findById(Long id);
@Query(value ="select * from user where created_at between STR_TO_DATE(?1,'%Y-%m-%d %H:%i:%s') and STR_TO_DATE(?2,'%Y-%m-%d %H:%i:%s') ", nativeQuery = true)
@Query(value ="select * from user where created_at>=?1 and created_at<?2 ", nativeQuery = true)
List<User> findRegisterUserByTime(String beginTime,String endTime);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment