比如
动态sql是这样写的 <include refid="selectRecycleClassifyVo"/> <where> <if test="allParent != null and allParent != '' "> id in (#{allParent})</if> </where> 执行的sql语句是这样的 select id, recycle_name, parent_id, deepness_rank, all_parent, whether_subclass, english_name, metering_units, kg_conversion, unit_price, sequence, classify_explain, creation_time FROM lwrh_recycle_classify WHERE id in ('0,11,15');
怎么把括号里面的单引号消除啊?
使用foreach语法
举例如下:
foreach 的具体语法解释: