spring boot mybatis 注解调用存储过程,接收游标返回数据集

@Select("call pro_work_order_item(    #{mastId,mode=IN,jdbcType=NUMERIC}," +
        "                             #{pPage,mode=IN,jdbcType=NUMERIC}," +
        "                             #{pCount,mode=IN,jdbcType=NUMERIC}," +
        "                             #{pInside,mode=IN,jdbcType=NUMERIC}," +
        "                             #{pResult,mode=OUT,jdbcType=NUMERIC}, " +
        "                             #{sendMessageInfos,mode=OUT,jdbcType=CURSOR,javaType=ResultSet,resultMap=sendMessageInfos})")
@Results(id = "sendMessageInfos",
        value={
                @Result(column = "SEND_USER_ID", property = "sendUserId"),
                @Result(column = "NICKNAME", property = "sendUserName"),
                @Result(column = "CREATE_TIME", property = "sendMessageTime"),
                @Result(column = "FILE_PATH_THUMB", property = "filePathThumb"),
                @Result(column = "FILE_PATH", property = "filePath"),
                @Result(column = "MESSAGE_TYPE", property = "chatContentType"),
                @Result(column = "PIC_PATH_THUMB", property = "picPathThumb"),
                //@Result(column = "PIC_PATH", property = "pageCount"),
                @Result(column = "FILE_NAME", property = "fileName"),
                @Result(column = "EVALUATE_VALUE", property = "evaluationScore"),
                @Result(column = "RECORD_TEXT", property = "chatContent"),
                @Result(column = "PAGE_COUNT", property = "pCount")
        }
)
@Options(statementType= StatementType.CALLABLE )
首先把代码直接铺出来,

很早就做出来了,但是看见网上没有,给那些在爬这个坑,或者准备爬坑的同学,一个胶带.希望能帮助各位.
很早就做出来了,但是看见网上没有,给那些在爬这个坑,或者准备爬坑的同学,一个胶带.

你可能感兴趣的:(java)