分析原因Parameter ‘xxx‘ not found. Available parameters are [xxx, param...]
1、在 Dao 层,方法签名中形参注解 @Param 名是否和 XML 里使用保持一致
ListgetScriptsByNameMap(@Param("supScriptNamePairList") List > supScriptNamePairList);
SELECT * FROM t_ac_api_script scriptPO LEFT JOIN t_srm_supplier sup ON sup.supplier_id = scriptPO.supplier_id supplier_name = #{supScriptNamePair.key} AND script_name = #{supScriptNamePair.value} AND script_del = 0
2、@Param 注解包是否引入正确
import org.apache.ibatis.annotations.Param;
3、XML 语法使用实参变量时,使用是否正确(博主是栽在这)


![MyBatis - Parameter ‘xxx‘ not found. Available parameters are [xxx, param.] MyBatis - Parameter ‘xxx‘ not found. Available parameters are [xxx, param.]](http://www.mshxw.com/aiimages/31/1036846.png)
