package com.rj.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rj.entity.AudioManagement;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.math.BigDecimal;

/**
 * <p>
 * 录音管理表，含信息卡字段 Mapper 接口
 * </p>
 *
 * @author 李中华 ,spllzh
 * @since 2025-08-07
 */
public interface AudioManagementMapper extends BaseMapper<AudioManagement> {

    @InterceptorIgnore(tenantLine = "true")
    @Update("UPDATE audio_management SET recording_text = #{recordingText}, duration = #{duration} WHERE id = #{id}")
    int updateRecordingTextAndDurationByIdIgnoreTenant(
            @Param("recordingText") String recordingText,
            @Param("duration") BigDecimal duration,
            @Param("id") String id);
}
