在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>

​

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐