应该将返回类型修改为 List<BpmInstLog>,同时在<select>标签中添加 resultType 属性,指定返回结果的类型为 List<BpmInstLog>。修改后的代码如下:

<select id="getByInstIdByName" parameterType="java.lang.String" resultType="java.util.List<com.redxun.bpm.core.entity.BpmInstLog>"> select * from bpm_inst_log where 1=1 <if test="instId != null"> and inst_id_=#{instId} </if> <if test="userId != null"> and USER_ID_=#{userId} </if> order by create_time_ asc </select>


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

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