报这个错是由于粘贴复制后,没有改返回值属性,如下
<select id="selectLineListByMattypeCode" parameterType="Long" resultType="SysLineResult">
select
l.*
from
sys_materialtype_line ml,
sys_dict_data dd,
sys_line l
where
ml.materialtype_code = dd.dict_code
and ml.line_id = l.id
and dd.dict_code = #{materialtypeCode}
</select>
将resultType改为resultMap就行了