org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'cname' not found. Available parameters are [arg1, arg0, param1, param2]
cname 也都是有的呀
List<staff> checkName( String cname, String comcode);
mapper文件
<select id="checkName" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from staff
where cname= #{cname} and validstatus = '1' and comcode like #{comcode}||'%'
</select>