package com.aps.core.service.impl; import java.util.List; import com.aps.common.core.utils.DateUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.aps.core.mapper.ApsPlateStandardRequireBatchMapper; import com.aps.core.domain.ApsPlateStandardRequireBatch; import com.aps.core.service.IApsPlateStandardRequireBatchService; /** * 钣金计划标准需求计划批次表Service业务层处理 * * @author zhl * @date 2025-05-06 */ @Service public class ApsPlateStandardRequireBatchServiceImpl implements IApsPlateStandardRequireBatchService { @Autowired private ApsPlateStandardRequireBatchMapper apsPlateStandardRequireBatchMapper; /** * 查询钣金计划标准需求计划批次表 * * @param id 钣金计划标准需求计划批次表主键 * @return 钣金计划标准需求计划批次表 */ @Override public ApsPlateStandardRequireBatch selectApsPlateStandardRequireBatchById(Long id) { return apsPlateStandardRequireBatchMapper.selectApsPlateStandardRequireBatchById(id); } /** * 查询钣金计划标准需求计划批次表列表 * * @param apsPlateStandardRequireBatch 钣金计划标准需求计划批次表 * @return 钣金计划标准需求计划批次表 */ @Override public List selectApsPlateStandardRequireBatchList(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch) { return apsPlateStandardRequireBatchMapper.selectApsPlateStandardRequireBatchList(apsPlateStandardRequireBatch); } /** * 新增钣金计划标准需求计划批次表 * * @param apsPlateStandardRequireBatch 钣金计划标准需求计划批次表 * @return 结果 */ @Override public int insertApsPlateStandardRequireBatch(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch) { apsPlateStandardRequireBatch.setCreateTime(DateUtils.getNowDate()); return apsPlateStandardRequireBatchMapper.insertApsPlateStandardRequireBatch(apsPlateStandardRequireBatch); } /** * 修改钣金计划标准需求计划批次表 * * @param apsPlateStandardRequireBatch 钣金计划标准需求计划批次表 * @return 结果 */ @Override public int updateApsPlateStandardRequireBatch(ApsPlateStandardRequireBatch apsPlateStandardRequireBatch) { apsPlateStandardRequireBatch.setUpdateTime(DateUtils.getNowDate()); return apsPlateStandardRequireBatchMapper.updateApsPlateStandardRequireBatch(apsPlateStandardRequireBatch); } /** * 批量删除钣金计划标准需求计划批次表 * * @param ids 需要删除的钣金计划标准需求计划批次表主键 * @return 结果 */ @Override public int deleteApsPlateStandardRequireBatchByIds(Long[] ids) { return apsPlateStandardRequireBatchMapper.deleteApsPlateStandardRequireBatchByIds(ids); } /** * 删除钣金计划标准需求计划批次表信息 * * @param id 钣金计划标准需求计划批次表主键 * @return 结果 */ @Override public int deleteApsPlateStandardRequireBatchById(Long id) { return apsPlateStandardRequireBatchMapper.deleteApsPlateStandardRequireBatchById(id); } }