工具:mybatis+pgsql 详见pgsql官方文档 案例 dao层 List<User> list(String date); sql <select id = "list" resultType = "com.test.dto.User"> select username,address,sex from user where birthday >= to_timestamp(#{date}, 'YYYY-mm-dd hh24:mi:ss') </select>