id,tenant_id,parent_tenant_id,
`name`,start_time,end_time,
credit_on_off,credit_config,
status,create_date,update_date,
all_merchant
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `start_time` >= #{begin}
and `end_time` <= #{end}
and `all_merchant` = #{allMerchant}
and end_time >= now()
and end_time <= now()
and `name` like concat('%', #{name},'%')
and `status` = #{status}
and id in
#{idItem}
order by ${sortColumns}
update wx_offline_activity
set `status` = #{status},
`update_date` = #{updateDate}
where id=#{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}