`id`,`tenant_id`,`c_user_id`,`credit_amount`,`credit_num`,`credit_type`,`create_date`,`receipt_url`,`operator_type`,`operator_id`,`merchant_id`,`coupon_id`,`business_id`,`spend`,`change_purpose`,`ticket_number`,`buser_id` and credit.create_date >= #{startTime} and credit.create_date < #{endTime} and credit.operator_type = #{operatorType} and credit.operator_id = #{operatorId} and credit.credit_type = #{creditType} and credit.c_user_id = #{cUserId} and credit.merchant_id = #{merchantId} and credit.ticket_number like concat('%', #{ticketNumber},'%') and credit.buser_id = #{buserId} and credit.merchant_id in #{merchantIdItem} and credit.c_user_id in #{cUserIdItem} delete from wx_credit_history where id = #{id} and tenant_id = #{tenantId} {call user_credit_clear(#{cutOffDate},#{finalTableIndex})}