package com.jcdm.main.bs.lineInfo.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.lineInfo.mapper.BsLineInfoMapper;
|
import com.jcdm.main.bs.lineInfo.domain.BsLineInfo;
|
import com.jcdm.main.bs.lineInfo.service.IBsLineInfoService;
|
|
/**
|
* 产线信息Service业务层处理
|
*
|
* @author Yi
|
* @date 2023-12-09
|
*/
|
@Service
|
public class BsLineInfoServiceImpl implements IBsLineInfoService
|
{
|
@Autowired
|
private BsLineInfoMapper bsLineInfoMapper;
|
|
/**
|
* 查询产线信息
|
*
|
* @param id 产线信息主键
|
* @return 产线信息
|
*/
|
@Override
|
public BsLineInfo selectBsLineInfoById(Long id)
|
{
|
return bsLineInfoMapper.selectBsLineInfoById(id);
|
}
|
|
/**
|
* 查询产线信息列表
|
*
|
* @param bsLineInfo 产线信息
|
* @return 产线信息
|
*/
|
@Override
|
public List<BsLineInfo> selectBsLineInfoList(BsLineInfo bsLineInfo)
|
{
|
return bsLineInfoMapper.selectBsLineInfoList(bsLineInfo);
|
}
|
|
/**
|
* 新增产线信息
|
*
|
* @param bsLineInfo 产线信息
|
* @return 结果
|
*/
|
@Override
|
public int insertBsLineInfo(BsLineInfo bsLineInfo)
|
{
|
bsLineInfo.setCreateTime(DateUtils.getNowDate());
|
return bsLineInfoMapper.insertBsLineInfo(bsLineInfo);
|
}
|
|
/**
|
* 修改产线信息
|
*
|
* @param bsLineInfo 产线信息
|
* @return 结果
|
*/
|
@Override
|
public int updateBsLineInfo(BsLineInfo bsLineInfo)
|
{
|
bsLineInfo.setUpdateTime(DateUtils.getNowDate());
|
return bsLineInfoMapper.updateBsLineInfo(bsLineInfo);
|
}
|
|
/**
|
* 批量删除产线信息
|
*
|
* @param ids 需要删除的产线信息主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteBsLineInfoByIds(Long[] ids)
|
{
|
return bsLineInfoMapper.deleteBsLineInfoByIds(ids);
|
}
|
|
/**
|
* 删除产线信息信息
|
*
|
* @param id 产线信息主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteBsLineInfoById(Long id)
|
{
|
return bsLineInfoMapper.deleteBsLineInfoById(id);
|
}
|
}
|