package com.ruoyi.project.tr.JpushMsg.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.ruoyi.project.tr.JpushMsg.mapper.JpushMsgMapper;
|
import com.ruoyi.project.tr.JpushMsg.domain.JpushMsg;
|
import com.ruoyi.project.tr.JpushMsg.service.IJpushMsgService;
|
import com.ruoyi.common.utils.text.Convert;
|
|
/**
|
* 极光推送消息Service业务层处理
|
*
|
* @author wm
|
* @date 2020-09-10
|
*/
|
@Service
|
public class JpushMsgServiceImpl implements IJpushMsgService
|
{
|
@Autowired
|
private JpushMsgMapper jpushMsgMapper;
|
|
/**
|
* 查询极光推送消息
|
*
|
* @param jpushMsgId 极光推送消息ID
|
* @return 极光推送消息
|
*/
|
@Override
|
public JpushMsg selectJpushMsgById(Integer jpushMsgId)
|
{
|
return jpushMsgMapper.selectJpushMsgById(jpushMsgId);
|
}
|
|
/**
|
* 查询极光推送消息列表
|
*
|
* @param jpushMsg 极光推送消息
|
* @return 极光推送消息
|
*/
|
@Override
|
public List<JpushMsg> selectJpushMsgList(JpushMsg jpushMsg)
|
{
|
return jpushMsgMapper.selectJpushMsgList(jpushMsg);
|
}
|
|
/**
|
* 新增极光推送消息
|
*
|
* @param jpushMsg 极光推送消息
|
* @return 结果
|
*/
|
@Override
|
public int insertJpushMsg(JpushMsg jpushMsg)
|
{
|
jpushMsg.setCreateTime(DateUtils.getNowDate());
|
return jpushMsgMapper.insertJpushMsg(jpushMsg);
|
}
|
|
/**
|
* 修改极光推送消息
|
*
|
* @param jpushMsg 极光推送消息
|
* @return 结果
|
*/
|
@Override
|
public int updateJpushMsg(JpushMsg jpushMsg)
|
{
|
jpushMsg.setUpdateTime(DateUtils.getNowDate());
|
return jpushMsgMapper.updateJpushMsg(jpushMsg);
|
}
|
|
/**
|
* 删除极光推送消息对象
|
*
|
* @param ids 需要删除的数据ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteJpushMsgByIds(String ids)
|
{
|
return jpushMsgMapper.deleteJpushMsgByIds(Convert.toStrArray(ids));
|
}
|
|
/**
|
* 删除极光推送消息信息
|
*
|
* @param jpushMsgId 极光推送消息ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteJpushMsgById(Integer jpushMsgId)
|
{
|
return jpushMsgMapper.deleteJpushMsgById(jpushMsgId);
|
}
|
}
|