2021
08-23
08-23
mybatis分割字符串并循环,实现in多个参数的操作
mybatis分割字符串并循环,实现in多个参数mybatisxml代码:<selectid="selectInXh"resultMap="BaseResultMap"parameterType="java.lang.String">select*fromcarinfowherexhin<iftest="param1!=nullandparam1!=''"><foreachitem="item"index="index"collection="param1.split(',')"open="("separator=","close=")">#{item}</foreach></if></select>mybatissql打印:==>Preparin...
继续阅读 >