<if test="common.utils.StringUtils@isEmpty(orgIds)">
and site.org_id in
<foreach item="orgId" collection="orgIds"
open="(" separator="," close=")">
#{orgId}
</foreach>
</if>
public static boolean isEmpty(Object value) {
if (value == null || "".equals(value.toString().trim())) {
return true;
}
return false;
}