参数是String
<delete id="deleteByObjId" parameterType="java.lang.String">
delete from aa
where obj_id=#{_parameter}
</delete>
参数是Map
<when test="@com..MapUtils@getSize(_parameter) >0">
MapUtils:
public static <K, V> int getSize(Map<K, V> map) {
if (map == null) {
return 0;
}
return map.size();
}