AudioServiceImpl.java 742 Bytes
package com.cnlive.shenhe.serviceImpl;

import com.cnlive.shenhe.entity.ShyAudio;
import com.cnlive.shenhe.mapper.ShyAudioMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: xujincheng
 * @Date: 2020/6/8 10:19
 */
@Service
public class AudioServiceImpl {

    @Autowired
    ShyAudioMapper shyAudioMapper;

    public ShyAudio getAudioMsg(String audioId) {
        return shyAudioMapper.getAudioMsg(audioId);
    }

    public int importAudioMsg(ShyAudio ShyAudio) {
        return shyAudioMapper.insertSelective(ShyAudio);
    }

    public int updateAudioMsg(ShyAudio ShyAudio) {
        return shyAudioMapper.updateByPrimaryKeySelective(ShyAudio);
    }
}