|
JeecgBoot 3.0 是用mybatis-plus,应该能支持多参数?但3.0却不行,如下图:
/**
* 多参数据 查系统字典
* @param pageSize
* @param pageNo
* @return
*/
IPage<SysDict> queryPageList(Map<String, Object> map, int pageSize, int pageNo);
mapper.xml写法:
<select id="queryPageList" parameterType="map" resultType="org.jeecg.modules.system.entity.SysDict">
select s.dict_Name as "value",s.dict_code as "text" from sys_dict s
<if test="dictName != null and dictName != ''">
s.dict_Name = #{dictName}
</if>
<if test="dictCode != null and dictCode != ''">
s.dict_code = #{dictCode}
</if>
</select>
报错信息:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'dictName' not found. Available parameters are [arg0, query, param1, param2]
|
|