mybatis <collection属性的使用

求是科技 发布于 2017/02/23 19:05
阅读 1K+
收藏 0

<collection property="commentReplayLis" javaType="ArrayList" column="{id=id,uId=uId,replySize=replySize,refreshTime=null}" select="getCommentListReply"/>

我想给getCommentListReply这个方法的接参refreshTime传固定值null,却报了如下错误 

{
    "returnCode": "0002",
    "returnDesc": "nested exception is org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column ''null'' from result set.  Cause: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column ''null'' from result set.  Cause: java.sql.SQLException: Column ''null'' not found.",
    "returnData": ""
}

null 这个列找不到  能不能直接传成值 呢?

加载中
返回顶部
顶部