ibatis中传参数问题。parameterClass="pages",pages类中有一个map属性。sql中如何获取map键的值?

2025年05月03日 11:06
有1个网友回答
网友(1):

用#{}取值。
比如:select cid,cname from channel_table where cid=#{id} and cname=#{name};

id和name就是map的属性!