package com.jcdm.main.bs.formulaChildInfoTemp.service.impl; import java.util.List; import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.jcdm.common.utils.DateUtils; import com.jcdm.main.bs.lineInfo.domain.BsLineInfo; import com.jcdm.main.bs.lineInfo.mapper.BsLineInfoMapper; import com.jcdm.main.bs.lineInfo.service.IBsLineInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.jcdm.main.bs.formulaChildInfoTemp.mapper.BsFormulaChildInfoTempMapper; import com.jcdm.main.bs.formulaChildInfoTemp.domain.BsFormulaChildInfoTemp; import com.jcdm.main.bs.formulaChildInfoTemp.service.IBsFormulaChildInfoTempService; /** * 配方配置子信息-备份Service业务层处理 * * @author Yi * @date 2024-07-15 */ @Service public class BsFormulaChildInfoTempServiceImpl extends ServiceImpl implements IBsFormulaChildInfoTempService { @Autowired private BsFormulaChildInfoTempMapper bsFormulaChildInfoTempMapper; /** * 查询配方配置子信息-备份 * * @param id 配方配置子信息-备份主键 * @return 配方配置子信息-备份 */ @Override public BsFormulaChildInfoTemp selectBsFormulaChildInfoTempById(Long id) { return bsFormulaChildInfoTempMapper.selectBsFormulaChildInfoTempById(id); } /** * 查询配方配置子信息-备份列表 * * @param bsFormulaChildInfoTemp 配方配置子信息-备份 * @return 配方配置子信息-备份 */ @Override public List selectBsFormulaChildInfoTempList(BsFormulaChildInfoTemp bsFormulaChildInfoTemp) { return bsFormulaChildInfoTempMapper.selectBsFormulaChildInfoTempList(bsFormulaChildInfoTemp); } /** * 新增配方配置子信息-备份 * * @param bsFormulaChildInfoTemp 配方配置子信息-备份 * @return 结果 */ @Override public int insertBsFormulaChildInfoTemp(BsFormulaChildInfoTemp bsFormulaChildInfoTemp) { bsFormulaChildInfoTemp.setCreateTime(DateUtils.getNowDate()); return bsFormulaChildInfoTempMapper.insertBsFormulaChildInfoTemp(bsFormulaChildInfoTemp); } /** * 修改配方配置子信息-备份 * * @param bsFormulaChildInfoTemp 配方配置子信息-备份 * @return 结果 */ @Override public int updateBsFormulaChildInfoTemp(BsFormulaChildInfoTemp bsFormulaChildInfoTemp) { bsFormulaChildInfoTemp.setUpdateTime(DateUtils.getNowDate()); return bsFormulaChildInfoTempMapper.updateBsFormulaChildInfoTemp(bsFormulaChildInfoTemp); } /** * 批量删除配方配置子信息-备份 * * @param ids 需要删除的配方配置子信息-备份主键 * @return 结果 */ @Override public int deleteBsFormulaChildInfoTempByIds(Long[] ids) { return bsFormulaChildInfoTempMapper.deleteBsFormulaChildInfoTempByIds(ids); } /** * 删除配方配置子信息-备份信息 * * @param id 配方配置子信息-备份主键 * @return 结果 */ @Override public int deleteBsFormulaChildInfoTempById(Long id) { return bsFormulaChildInfoTempMapper.deleteBsFormulaChildInfoTempById(id); } }