package com.ruoyi.station.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.station.mapper.MjOpenHnweMapper;
|
import com.ruoyi.station.domain.MjOpenHnwe;
|
import com.ruoyi.station.service.IMjOpenHnweService;
|
import com.ruoyi.common.core.text.Convert;
|
|
/**
|
* ax模式临时Service业务层处理
|
*
|
* @author ruoyi
|
* @date 2020-09-15
|
*/
|
@Service
|
public class MjOpenHnweServiceImpl implements IMjOpenHnweService
|
{
|
@Autowired
|
private MjOpenHnweMapper mjOpenHnweMapper;
|
|
/**
|
* 查询ax模式临时
|
*
|
* @param id ax模式临时ID
|
* @return ax模式临时
|
*/
|
@Override
|
public MjOpenHnwe selectMjOpenHnweById(String id)
|
{
|
return mjOpenHnweMapper.selectMjOpenHnweById(id);
|
}
|
|
/**
|
* 查询ax模式临时列表
|
*
|
* @param mjOpenHnwe ax模式临时
|
* @return ax模式临时
|
*/
|
@Override
|
public List<MjOpenHnwe> selectMjOpenHnweList(MjOpenHnwe mjOpenHnwe)
|
{
|
return mjOpenHnweMapper.selectMjOpenHnweList(mjOpenHnwe);
|
}
|
|
/**
|
* 新增ax模式临时
|
*
|
* @param mjOpenHnwe ax模式临时
|
* @return 结果
|
*/
|
@Override
|
public int insertMjOpenHnwe(MjOpenHnwe mjOpenHnwe)
|
{
|
mjOpenHnwe.setCreateTime(DateUtils.getNowDate());
|
return mjOpenHnweMapper.insertMjOpenHnwe(mjOpenHnwe);
|
}
|
|
/**
|
* 修改ax模式临时
|
*
|
* @param mjOpenHnwe ax模式临时
|
* @return 结果
|
*/
|
@Override
|
public int updateMjOpenHnwe(MjOpenHnwe mjOpenHnwe)
|
{
|
mjOpenHnwe.setUpdateTime(DateUtils.getNowDate());
|
return mjOpenHnweMapper.updateMjOpenHnwe(mjOpenHnwe);
|
}
|
|
/**
|
* 删除ax模式临时对象
|
*
|
* @param ids 需要删除的数据ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteMjOpenHnweByIds(String ids)
|
{
|
return mjOpenHnweMapper.deleteMjOpenHnweByIds(Convert.toStrArray(ids));
|
}
|
|
/**
|
* 删除ax模式临时信息
|
*
|
* @param id ax模式临时ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteMjOpenHnweById(String id)
|
{
|
return mjOpenHnweMapper.deleteMjOpenHnweById(id);
|
}
|
}
|