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.MjTeamMapper;
|
import com.ruoyi.station.domain.MjTeam;
|
import com.ruoyi.station.service.IMjTeamService;
|
import com.ruoyi.common.core.text.Convert;
|
|
/**
|
* 组Service业务层处理
|
*
|
* @author ruoyi
|
* @date 2020-08-27
|
*/
|
@Service
|
public class MjTeamServiceImpl implements IMjTeamService
|
{
|
@Autowired
|
private MjTeamMapper mjTeamMapper;
|
|
/**
|
* 查询组
|
*
|
* @param id 组ID
|
* @return 组
|
*/
|
@Override
|
public MjTeam selectMjTeamById(String id)
|
{
|
return mjTeamMapper.selectMjTeamById(id);
|
}
|
|
/**
|
* 查询组列表
|
*
|
* @param mjTeam 组
|
* @return 组
|
*/
|
@Override
|
public List<MjTeam> selectMjTeamList(MjTeam mjTeam)
|
{
|
return mjTeamMapper.selectMjTeamList(mjTeam);
|
}
|
|
/**
|
* 新增组
|
*
|
* @param mjTeam 组
|
* @return 结果
|
*/
|
@Override
|
public int insertMjTeam(MjTeam mjTeam)
|
{
|
mjTeam.setCreateTime(DateUtils.getNowDate());
|
return mjTeamMapper.insertMjTeam(mjTeam);
|
}
|
|
/**
|
* 修改组
|
*
|
* @param mjTeam 组
|
* @return 结果
|
*/
|
@Override
|
public int updateMjTeam(MjTeam mjTeam)
|
{
|
mjTeam.setUpdateTime(DateUtils.getNowDate());
|
return mjTeamMapper.updateMjTeam(mjTeam);
|
}
|
|
/**
|
* 删除组对象
|
*
|
* @param ids 需要删除的数据ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteMjTeamByIds(String ids)
|
{
|
return mjTeamMapper.deleteMjTeamByIds(Convert.toStrArray(ids));
|
}
|
|
/**
|
* 删除组信息
|
*
|
* @param id 组ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteMjTeamById(String id)
|
{
|
return mjTeamMapper.deleteMjTeamById(id);
|
}
|
|
@Override
|
public String getName(String orderId) {
|
return mjTeamMapper.getName(orderId);
|
}
|
}
|