可能在Mapper.xml的sql查询文件条件筛选中 name="field"和#{filed}两者的filed没有对应。就会出现找不到对应的参数,如果是name="FILED"和#{filed},就会出现Parameter 'FILED' not found
<if test="entity.field != null and entity.field != ''">
<bind name="field" value="'%' + entity.field + '%'"/>
and `table_name`.`FILED` like #{filed}
</if>