我正在尝试更新记录列表,但在 mybatis 中出现以下错误。
org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'list' in 'class com.model.DataParameters'
我的 mybatis xml 查询如下
<update id="deleteAssociatedEntityForParentEntity" parameterType="com.model.DataParameters">
update dataTable set deleted = #{deleted}, syncTS = #{syncTS} where
data_id in
<foreach item="dataIds" index="index" collection="list"
open="(" separator="," close=")">
#{dataIds}
</foreach>
and aData_type = #{dataType};
</update>
DataParameter 类 getter setter 已在此类中声明。dataIds 是我的清单。
请让我知道他们在我的查询中是否有任何错误。为什么列表不包含?伙计们还有什么办法吗?