mybatis <collection属性的使用

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

【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”

<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 这个列找不到  能不能直接传成值 呢?

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部