`id`,`merchant_id`, `shop_type_sub`,`lease_purpose`,`contractual_rules`,`delivery_date`,`delivery_grace_period`,`opening_date`,`business_hours`,`scope_metre`, `price`,`rental_start_date`,`rental_end_date`,`sign_date`,`receive_period`, `tenant_id`,`parent_tenant_id`,`filepath`,`status`,`contract_number`, `first_party_bank_info`,`second_party_bank_info`,`second_party_tax_info`, `property_name`,`property_fee`,`fee_cycle`,`water_fee`,`electricity_fees`, `deposit`,cashtype_content_lsit,cashtype_lsit,`pay_date`,`is_del`,`merchant_name`, `brand`,`business_id`,`shop_type`,`shop_type_str`,`updatetime`,`createtime`,`link_person`,`link_phone`,`link_address`, `pay_account`,`filename`,`lease`,`type`,`revenue`,`revenue_ratio`,`revenue_year`,`adjust_ratio`,`adjust_period`,`pay_ratio`, `start_date`,`end_date`,`shop_name`,`from_id`, `apply_status`,`bank_name`,`rent_shop_type`,`fix_start_date`,`fix_end_date`, `business_type`,`rent_info`, `file_names`,price_unit,rent_price,other_rent_price_info,`subject_name`,rent_start_type, `rent_input_way`,`adjust_ratio_way`,`operation_type`,late_pay_ratio,late_pay_day,bus_discount_ratio,bus_discount_time where 1 = 1 and `id` = #{id} and `from_id` = #{fromId} and `merchant_id` = #{merchantId} and `price` = #{price} and `rental_start_date` = #{rentalStartDate} and `rental_end_date` = #{rentalEndDate} and `sign_date` = #{signDate} and `receive_period` = #{receivePeriod} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `filepath` = #{filepath} and `status` = #{status} and `apply_status` = #{applyStatus} and `contract_number` = #{contractNumber} and `deposit` = #{deposit} and `pay_date` = #{payDate} and `is_del` = #{isDel} and `merchant_name` like concat('%', #{merchantName},'%') and `brand` = #{brand} and `business_id` = #{businessId} and `shop_type` = #{shopType} and `updatetime` = #{updatetime} and `createtime` = #{createtime} and `link_person` = #{linkPerson} and `link_phone` = #{linkPhone} and `pay_account` = #{payAccount} and `filename` = #{filename} and `lease` = #{lease} and `type` = #{type} and `start_date` = #{startDate} and `end_date` = #{endDate} and `rent_shop_type` = #{rentShopType} and `operation_type` = #{operationType} and json_contains(json_extract(rent_info,'$[*].id'),concat('"',#{queryShopId},'"')) and shop_name like concat('%',#{shopNumber},'%') and business_id in (${businessForRule}) and `id` in select id from wx_rent_contract where 1=1 and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and json_unquote(json_extract(json_extract(rent_info,'$[*].shopId'),concat('$[',#{idx},']'))) in(select id from wx_shop where 1=1 and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and floor in (${floorForRule})) and status in #{statusItem} and id in #{idItem} order by ${sortColumns} update wx_rent_contract set apply_status=#{applyStatus} ,business_type=#{businessType} ,status=#{status} where id=#{id} update wx_rent_contract set status=#{status} where id=#{id}