org.apache.ibatis.type.TypeException: Error setting non null for parameter #1 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
<if test="serviceId !=null and serviceId !=''"> and s.id =#{serviceId} </if>
检查一下sql判断条件中"!"是否忘加了,没有!会变为赋值运算,类型不一样会出现类型转换异常,如果字段为int类型则 serviceId !=' ' 无需添加