package com.jcdm.main.bs.lineInfo.service.impl; import java.util.List; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 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; import static org.apache.commons.lang3.SystemUtils.getUserName; /** * 产线信息Service业务层处理 * * @author Yi * @date 2023-12-09 */ @Service public class BsLineInfoServiceImpl extends ServiceImpl 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 selectBsLineInfoList(BsLineInfo bsLineInfo) { return bsLineInfoMapper.selectBsLineInfoList(bsLineInfo); } /** * 新增产线信息 * * @param bsLineInfo 产线信息 * @return 结果 */ @Override public int insertBsLineInfo(BsLineInfo bsLineInfo) { bsLineInfo.setCreateTime(DateUtils.getNowDate()); bsLineInfo.setCreateUser(getUserName()); return bsLineInfoMapper.insertBsLineInfo(bsLineInfo); } /** * 修改产线信息 * * @param bsLineInfo 产线信息 * @return 结果 */ @Override public int updateBsLineInfo(BsLineInfo bsLineInfo) { bsLineInfo.setUpdateTime(DateUtils.getNowDate()); bsLineInfo.setUpdateUser(getUserName()); 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); } }