nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for propert

–>

nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for propert named ‘ITEM_ID’ in ‘class java.lang.String’

Xml映射文件配置(部分)

<insert id="insertBatch" parameterType="java.util.List" flushCache="true">
   <![CDATA[ INSERT INTO OA_PM_PERSON_INPUT_ITEM(
    ITEM_ID,
    INPUT_ID,
    INPUT_STATUS,
    INPUT_TIME,
    PROJECT_ID
)
  ]]>
   <foreach collection="list" item="item" index="index" separator="UNION ALL">
      (SELECT
      (SELECT TO_CHAR(COUNT(item_id) + 1) FROM OA_PM_PERSON_INPUT_ITEM),
      (SELECT TO_CHAR(COUNT(input_id) + 1) FROM OA_PM_PERSON_INPUT),
      #{item.input_status,jdbcType=VARCHAR},
      #{item.input_time,jdbcType=DATE},
      #{item.project_id,jdbcType=VARCHAR}
      FROM DUAL)
   </foreach>
</insert>

这是Mybatis Xml映射文件配置,映射文件与前台的保持一致,包括大小写

本文来源 互联网收集,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源,如您发现有涉嫌抄袭侵权的内容,请联系本站核实处理。

© 版权声明

相关文章