`id`,`tenant_id`,`parent_tenant_id`,`create_time`,`update_time`,`receive_money`,`pay_money`,`set_off_money`,`use_money`,`status`,`type`, `receive_type`,`money_detail`,`create_by`,`create_by_name`,`update_by`,`update_by_name`,`merchant_id`,`rent_shop_type`,`remark`, `fees_id`,`is_print`,`is_finish` where 1=1 and `id` = #{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `status` = #{status} and `type` = #{type} and `receive_type` = #{receiveType} and `merchant_id` = #{merchantId} and `rent_shop_type` = #{rentShopType} and `create_time` >= #{createTimeBegin} and `create_time` <= #{createTimeEnd} and `fees_id` = #{feesId} and `rent_shop_type` = #{rentShopType} and `is_print` = #{isPrint} and `is_finish` = #{isFinish} and `status` in (1,3) and receive_money - IFNULL(use_money,'0') > 0 and merchant_id in #{midItem} and fees_id in #{fidItem} and id in #{idItem} order by ${sortColumns} update wx_finance_receive set is_del = #{isDel} where id = #{id} and `tenant_id` = #{tenantId} update wx_finance_receive set is_finish = 1 update wx_finance_receive set is_print = 1 where id = #{id} and tenant_id = #{tenantId}