mybatis的test表达式中,不能使用关键字作为变量传参
<if test="in.followType != null and in.followType != ''"> AND FOLLOW_TYPE = #{in.followType} </if>
以上在运行代码时会报错,因为in是test表达式中的关键字 不能使用
<if test="inTo.followType != null and inTo.followType != ''">
AND FOLLOW_TYPE = #{inTo.followType}
</if>
将in改为inTo就可以了

浙公网安备 33010602011771号