`id`,`agile_type`,`customers_id`,`tenant_id`,`parent_tenant_id`,
`decimal_size`,`price`,`rental_start_date`,`rental_end_date`,`sign_date`,`receive_period`,`receive_period_unit`,
`filepath`,`status`,`contract_number`,`price_detail`,`create_by`,`update_by`,
`day_price_calcute`,`first_bill_date_start`,`first_bill_date_end`,`month_average_days`,`free_period_remark`,
`deposit`,cashtype_content_lsit,cashtype_lsit,`is_del`,`revenue_jumps_remark`,
`updatetime`,`createtime`,`link_person`,`link_phone`,`link_address`,
`pay_account`,`filename`,`lease`,`type`,`revenue`,`revenue_ratio`,`revenue_ratio_way`,`revenue_ratio_set`,`adjust_ratio`,`adjust_period`,`pay_ratio`,
`start_date`,`end_date`,`from_id`,`end_contract_time`,`revenue_fixed_rent_price`,`revenue_rent_price`,
`apply_status`,`bank_name`,`fix_start_date`,`fix_end_date`,`pay_period_rate`,`create_by_name`,`update_by_name`,
`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,first_bill_receive_date,
bussiness_management_fee,bussiness_management_fee_ratio_way,bussiness_management_fee_ratio,shop_id_str,
operating_management_fee,operating_management_fee_ratio_way,operating_management_fee_ratio,out_date_notify_days,out_date_notify_phone,design_file
where 1 = 1
and `id` = #{id}
and `from_id` = #{fromId}
and `agile_type` = #{agileType}
and `customers_id` = #{customersId}
and `price` = #{price}
and `rental_start_date` = #{rentalStartDate}
and `rental_end_date` = #{rentalEndDate}
and out_date_notify_phone is not null and out_date_notify_phone != '' and out_date_notify_days is not null and out_date_notify_days > 0
and `sign_date` = #{signDate}
and `receive_period` = #{receivePeriod}
and `receive_period_unit` = #{receivePeriodUnit}
and `pay_period_rate` = #{payPeriodRate}
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 `is_del` = #{isDel}
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 `operation_type` = #{operationType}
and json_contains(json_extract(rent_info,'$[*].id'),concat('"',#{queryShopId},'"'))
and `day_price_calcute` = #{dayPriceCalcute}
and `month_average_days` = #{monthAverageDays}
and `revenue_fixed_rent_price` = #{revenueFixedRentPrice}
and concat(',',shop_id_str,',') like concat('%,',#{queryShopId},',%')
and customers_id in
#{cusItem}
and status in
#{statusItem}
and type in
#{typeItem}
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}
update wx_rent_contract set end_contract_time = #{endContractTime} where id = #{id}