package com.smartor.service.impl;
|
|
import java.util.List;
|
import com.ruoyi.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.smartor.mapper.BaseSmsaccountMapper;
|
import com.smartor.domain.BaseSmsaccount;
|
import com.smartor.service.IBaseSmsaccountService;
|
|
/**
|
* 短信账号Service业务层处理
|
*
|
* @author smartor
|
* @date 2023-03-06
|
*/
|
@Service
|
public class BaseSmsaccountServiceImpl implements IBaseSmsaccountService
|
{
|
@Autowired
|
private BaseSmsaccountMapper baseSmsaccountMapper;
|
|
/**
|
* 查询短信账号
|
*
|
* @param smsacountid 短信账号主键
|
* @return 短信账号
|
*/
|
@Override
|
public BaseSmsaccount selectBaseSmsaccountBySmsacountid(Long smsacountid)
|
{
|
return baseSmsaccountMapper.selectBaseSmsaccountBySmsacountid(smsacountid);
|
}
|
|
/**
|
* 查询短信账号列表
|
*
|
* @param baseSmsaccount 短信账号
|
* @return 短信账号
|
*/
|
@Override
|
public List<BaseSmsaccount> selectBaseSmsaccountList(BaseSmsaccount baseSmsaccount)
|
{
|
return baseSmsaccountMapper.selectBaseSmsaccountList(baseSmsaccount);
|
}
|
|
/**
|
* 新增短信账号
|
*
|
* @param baseSmsaccount 短信账号
|
* @return 结果
|
*/
|
@Override
|
public int insertBaseSmsaccount(BaseSmsaccount baseSmsaccount)
|
{
|
baseSmsaccount.setCreateTime(DateUtils.getNowDate());
|
return baseSmsaccountMapper.insertBaseSmsaccount(baseSmsaccount);
|
}
|
|
/**
|
* 修改短信账号
|
*
|
* @param baseSmsaccount 短信账号
|
* @return 结果
|
*/
|
@Override
|
public int updateBaseSmsaccount(BaseSmsaccount baseSmsaccount)
|
{
|
baseSmsaccount.setUpdateTime(DateUtils.getNowDate());
|
return baseSmsaccountMapper.updateBaseSmsaccount(baseSmsaccount);
|
}
|
|
/**
|
* 批量删除短信账号
|
*
|
* @param smsacountids 需要删除的短信账号主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteBaseSmsaccountBySmsacountids(Long[] smsacountids)
|
{
|
return baseSmsaccountMapper.deleteBaseSmsaccountBySmsacountids(smsacountids);
|
}
|
|
/**
|
* 删除短信账号信息
|
*
|
* @param smsacountid 短信账号主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteBaseSmsaccountBySmsacountid(Long smsacountid)
|
{
|
return baseSmsaccountMapper.deleteBaseSmsaccountBySmsacountid(smsacountid);
|
}
|
}
|