使用Mybatis时,如何定义Long类型数据javaType属性
使用Mybatis时,如何定义Long类型数据javaType属性,看看这篇文章
·
在Mybatis中,字段如果是long类型,在写字段的javaType属性应该用BIGINT
<select id="getPhoneGroupPersonIdsByGroupId" resultType="Long">
select person_id from phone_group_person
where phone_group_id=#{phoneGroupId,jdbcType=BIGINT}
and is_delete=0
</select>
更多推荐
所有评论(0)