报错“”:
org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '__frch_item_0' in 'class com.bls.entity.Page'
异常代码:
<if test=" CLASS_IDS !=null and CLASS_IDS .size>0">
and t1.CREATOR_DEPART in
<foreach item="item" index="index" collection="CLASS_IDS "
open="(" separator="," close=")">
'${item}'
</foreach>
</if>
优化后的代码:
<if test=" CLASS_IDS !=null and CLASS_IDS .size>0">
<foreach collection="DEPARTMENT_IDS" index="index" item="item"
open="(" separator="," close=")">
#{CLASS_IDS [${index}]}
</foreach>
</if >
分析:
不知道为什么, index="index" 失效