publicList<XXXBean> getXXXBeanList(@Param("id")String id,@Param("code")String code);
<selectid="getXXXBeanList" resultType="XXBean">
select t.* from tableNamewhere id = #{id} and name = #{code}
</select>
使用@param注解 xml中#{ }中传入对应的键。就可以传多个参数