`id`,`tenant_id`,`name`,`title`,`content`,`cover`,`cover_picture`,`detail_picture`,`advert`,`begin_time`,`end_time`,`createtime`,`updatetime`,`bg_color` where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `begin_time` >= #{beginTime} and `end_time` <= #{endTime} and `status` = #{status} and `name` like concat('%',#{name},'%') and status in #{statusItem} order by ${sortColumns} order by begin_time desc,status asc update wx_topic set status = 3 where now() >= end_time and tenant_id = #{tenantId}