package com.jcdm.main.bs.beatSetting.service.impl;
|
|
import java.util.List;
|
import com.jcdm.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.jcdm.main.bs.beatSetting.mapper.BsBeatSettingMapper;
|
import com.jcdm.main.bs.beatSetting.domain.BsBeatSetting;
|
import com.jcdm.main.bs.beatSetting.service.IBsBeatSettingService;
|
|
/**
|
* 节拍设置Service业务层处理
|
*
|
* @author Yi
|
* @date 2024-01-05
|
*/
|
@Service
|
public class BsBeatSettingServiceImpl implements IBsBeatSettingService
|
{
|
@Autowired
|
private BsBeatSettingMapper bsBeatSettingMapper;
|
|
/**
|
* 查询节拍设置
|
*
|
* @param id 节拍设置主键
|
* @return 节拍设置
|
*/
|
@Override
|
public BsBeatSetting selectBsBeatSettingById(Long id)
|
{
|
return bsBeatSettingMapper.selectBsBeatSettingById(id);
|
}
|
|
/**
|
* 查询节拍设置列表
|
*
|
* @param bsBeatSetting 节拍设置
|
* @return 节拍设置
|
*/
|
@Override
|
public List<BsBeatSetting> selectBsBeatSettingList(BsBeatSetting bsBeatSetting)
|
{
|
return bsBeatSettingMapper.selectBsBeatSettingList(bsBeatSetting);
|
}
|
|
/**
|
* 新增节拍设置
|
*
|
* @param bsBeatSetting 节拍设置
|
* @return 结果
|
*/
|
@Override
|
public int insertBsBeatSetting(BsBeatSetting bsBeatSetting)
|
{
|
bsBeatSetting.setCreateTime(DateUtils.getNowDate());
|
return bsBeatSettingMapper.insertBsBeatSetting(bsBeatSetting);
|
}
|
|
/**
|
* 修改节拍设置
|
*
|
* @param bsBeatSetting 节拍设置
|
* @return 结果
|
*/
|
@Override
|
public int updateBsBeatSetting(BsBeatSetting bsBeatSetting)
|
{
|
bsBeatSetting.setUpdateTime(DateUtils.getNowDate());
|
return bsBeatSettingMapper.updateBsBeatSetting(bsBeatSetting);
|
}
|
|
/**
|
* 批量删除节拍设置
|
*
|
* @param ids 需要删除的节拍设置主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteBsBeatSettingByIds(Long[] ids)
|
{
|
return bsBeatSettingMapper.deleteBsBeatSettingByIds(ids);
|
}
|
|
/**
|
* 删除节拍设置信息
|
*
|
* @param id 节拍设置主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteBsBeatSettingById(Long id)
|
{
|
return bsBeatSettingMapper.deleteBsBeatSettingById(id);
|
}
|
}
|