Java 弹簧靴&;Postgresql

Java 弹簧靴&;Postgresql,java,postgresql,spring-boot,Java,Postgresql,Spring Boot,请帮助纠正我使用postgresql和spring boot调用函数的这个参数 @Select("select * from func_get_available_room(#{in},#{out},ARRAY[ #{type}::Integer ],#{room})") 博士后 select * from func_get_available_room('20191120','20191122',array[1,2],1); 弹簧靴 @Select("sele

请帮助纠正我使用postgresql和spring boot调用函数的这个参数

@Select("select * from func_get_available_room(#{in},#{out},ARRAY[ #{type}::Integer ],#{room})")
博士后

select * from func_get_available_room('20191120','20191122',array[1,2],1);
弹簧靴

@Select("select * from func_get_available_room(#{in},#{out},ARRAY[ #{type}::Integer ],#{room})")
列出GetAvailableeRoom(字符串输入、字符串输出、整数类型、整数房间)

错误


无法推断用于java.util.ArrayList实例的SQL类型。使用带有显式类型值的setObject()指定要使用的类型。

不要标记垃圾邮件。您好b,尝试使用此
@Select(“选择*来自func_get_available_room(?1,?2,数组[?3::Integer],?4)”)
列出GetAvailable room(字符串输入,字符串输出,列表类型,整数房间);我有这个列表是正确的?@Pisithscar你使用MyBatis,对吗?@SovanarithchHeavYesDon't tag spam.Hello b,试试这个
@Select(“Select*from funct\u get\u available\u room(?1,?2,ARRAY[?3::Integer],?4)”
list getavailable room(字符串输入,字符串输出,列表类型,Integer room);我有这张单子是对的吗?@Pisitoscar你用MyBatis,对吗?@Sovanarithchheav是的