`id`,`tenant_id`,`parent_tenant_id`,`create_time`,`update_time`,`rent_contract_id`,`property_contract_id`,`starttime`,`endtime`,
`sale_money`,`sale_money_valid`,`calcute_money`,`remark`,`is_confirm`,`is_calcute`
where 1=1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `rent_contract_id` = #{rentContractId}and `property_contract_id` = #{propertyContractId}and `starttime` >= #{starttime}and `starttime` = #{starttimeEqual}and `endtime` <= #{endtime}and `endtime` = #{endtimeEqual}and `is_confirm` = #{isConfirm}and `is_calcute` = #{isCalcute}
and id in
#{idItem}
order by ${sortColumns}
update wx_rent_contract_revenue_sales set is_confirm = 1
where `tenant_id` = #{tenantId} and `rent_contract_id` = #{rentContractId} and `starttime` >= #{starttime} and `endtime` <= #{endtime}
update wx_rent_contract_revenue_sales set is_calcute = 1
where `tenant_id` = #{tenantId} and `rent_contract_id` = #{rentContractId} and `starttime` >= #{starttime} and `endtime` <= #{endtime}