`id`,`tenant_id`,`parent_tenant_id`,`status`,`name`,`create_date`,`update_date`,`start_time`,`end_time`,`limit_money`,`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 start_time >= now() and `name` like concat('%', #{name},'%') and `status` = #{status} and status in #{statusItem} and id in #{idItem} order by ${sortColumns} update wx_cash_back_activity set `status` = #{status}, `update_date` = #{updateDate} where id=#{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId}