这个mapper.xml文件的问题在于在SQL语句中使用了错误的参数名。正确的参数名应该是instId而不是inst_id_。修改后的代码如下所示:

<select id="getByInstIdByName" parameterType="java.lang.String" resultType="com.redxun.bpm.core.entity.BpmInstLog">
    select * from bpm_inst_log where inst_id_ = #{instId} and USER_ID_ = #{userId} order by create_time_ asc
</select>
这个mapperxml文件有什么问题 select id=getByInstIdByName parameterType=javalangString resultType=comredxunbpmcoreentityBpmInstLog select from bpm_inst_log where inst_id_=#instId and USER_ID_=#userId

原文地址: https://www.cveoy.top/t/topic/h8r3 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录