`id`,`tenant_id`,`cover_img`,`title`,`sub_title`,`detail`,`html`,`person_limit`,`activity_start_time`,`activity_end_time`,
`use_credit`,`credit`,`type`,`status`,`start_time`,`end_time`,`question`,`is_expired`,`create_time`,`update_time`,`use_img`,
`img_detail`,`send_msg`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `title` like concat('%', #{title},'%')
and `sub_title` like concat('%', #{subTitle},'%')
and `detail` like concat('%', #{detail},'%')
and `type` = #{type}
and `status` = #{status}
and `create_time` = #{createTime}
and `update_time` = #{updateTime}
and `use_credit` = #{useCredit}
and `is_expired` = #{isExpired}
and `create_time` between #{starttime} and #{endtime}
and `send_msg` = #{sendMsg}
and id in
#{idItem}
order by ${sortColumns}
update wx_activity set is_expired=${isExpired},update_time=#{updateTime} where status=${status} and now()>end_time
update wx_activity set status=#{status},update_time=#{updateTime} where status!=${status} and now()>activity_end_time