package com.jcdm.main.bs.material.service.impl; import java.util.List; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.jcdm.common.utils.DateUtils; import com.jcdm.main.bs.material.domain.BsMaterialInfo; import com.jcdm.main.bs.material.mapper.BsMaterialInfoMapper; import com.jcdm.main.bs.material.service.IBsMaterialInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * 物料信息Service业务层处理 * * @author yyt * @date 2023-12-09 */ @Service public class BsMaterialInfoServiceImpl extends ServiceImpl implements IBsMaterialInfoService { @Autowired private BsMaterialInfoMapper bsMaterialInfoMapper; /** * 查询物料信息 * * @param id 物料信息主键 * @return 物料信息 */ @Override public BsMaterialInfo selectBsMaterialInfoById(Long id) { return bsMaterialInfoMapper.selectBsMaterialInfoById(id); } /** * 查询物料信息列表 * * @param bsMaterialInfo 物料信息 * @return 物料信息 */ @Override public List selectBsMaterialInfoList(BsMaterialInfo bsMaterialInfo) { return bsMaterialInfoMapper.selectBsMaterialInfoList(bsMaterialInfo); } /** * 新增物料信息 * * @param bsMaterialInfo 物料信息 * @return 结果 */ @Override public int insertBsMaterialInfo(BsMaterialInfo bsMaterialInfo) { return bsMaterialInfoMapper.insertBsMaterialInfo(bsMaterialInfo); } /** * 修改物料信息 * * @param bsMaterialInfo 物料信息 * @return 结果 */ @Override public int updateBsMaterialInfo(BsMaterialInfo bsMaterialInfo) { return bsMaterialInfoMapper.updateBsMaterialInfo(bsMaterialInfo); } /** * 批量删除物料信息 * * @param ids 需要删除的物料信息主键 * @return 结果 */ @Override public int deleteBsMaterialInfoByIds(Long[] ids) { return bsMaterialInfoMapper.deleteBsMaterialInfoByIds(ids); } /** * 删除物料信息信息 * * @param id 物料信息主键 * @return 结果 */ @Override public int deleteBsMaterialInfoById(Long id) { return bsMaterialInfoMapper.deleteBsMaterialInfoById(id); } }