`id`,`user_id`,`type`,`ip`,`desc`,`action_time`
where 1 = 1
and `id` = #{id}
and `user_id` = #{userId}
and `type` = #{type}
and `ip` like concat('%', #{ip},'%')
and `desc` like concat('%', #{desc},'%')
and `action_time` = #{actionTime}
and id in
#{idItem}
order by ${sortColumns}