`id`,`tenant_id`,`parent_tenant_id`,`business_id`,`business_type`,`user_id`,`remark`,`status`,`task_id`,`process_instance_id`,`create_date`,`update_date`,`tenant_id`,`user_name`,task_key,task_name,curr_status,variables, REPLACE (JSON_EXTRACT(variables,'$.contractType'),'"','') contractType, REPLACE (JSON_EXTRACT(variables,'$.endProperty'),'"','') endProperty, REPLACE (JSON_EXTRACT(variables,'$.contractNumber'),'"','') contractNumber, start_date where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `business_id` = #{businessId} and `user_id` = #{userId} and `status` = #{status} and `business_type` = #{businessType} and id in #{idItem} and json_extract(variables,'$.approvalType') = #{approvalType} order by create_date desc update wx_flow_record set curr_status=#{currStatus} and status = 1 and process_instance_id=#{processInstanceId} and business_id = #{businessId}