From d411d496546888e5062c1e9559d53f6829ab3113 Mon Sep 17 00:00:00 2001 From: xins Date: Sun, 7 Apr 2024 10:31:34 +0800 Subject: [PATCH] =?UTF-8?q?2.0.0=20DMSweb=E7=AB=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/DmsPlanLubeDetailServiceImpl.java | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanLubeDetailServiceImpl.java diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanLubeDetailServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanLubeDetailServiceImpl.java new file mode 100644 index 0000000..9e18b84 --- /dev/null +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsPlanLubeDetailServiceImpl.java @@ -0,0 +1,100 @@ +package com.hw.dms.service.impl; + +import java.util.List; +import com.hw.common.core.utils.DateUtils; +import com.hw.common.security.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.hw.dms.mapper.DmsPlanLubeDetailMapper; +import com.hw.dms.domain.DmsPlanLubeDetail; +import com.hw.dms.service.IDmsPlanLubeDetailService; + +/** + * 润滑计划明细Service业务层处理 + * + * @author xins + * @date 2024-03-21 + */ +@Service +public class DmsPlanLubeDetailServiceImpl implements IDmsPlanLubeDetailService +{ + @Autowired + private DmsPlanLubeDetailMapper dmsPlanLubeDetailMapper; + + /** + * 查询润滑计划明细 + * + * @param planLubeDetailId 润滑计划明细主键 + * @return 润滑计划明细 + */ + @Override + public DmsPlanLubeDetail selectDmsPlanLubeDetailByPlanLubeDetailId(Long planLubeDetailId) + { + return dmsPlanLubeDetailMapper.selectDmsPlanLubeDetailByPlanLubeDetailId(planLubeDetailId); + } + + /** + * 查询润滑计划明细列表 + * + * @param dmsPlanLubeDetail 润滑计划明细 + * @return 润滑计划明细 + */ + @Override + public List selectDmsPlanLubeDetailList(DmsPlanLubeDetail dmsPlanLubeDetail) + { + return dmsPlanLubeDetailMapper.selectDmsPlanLubeDetailList(dmsPlanLubeDetail); + } + + /** + * 新增润滑计划明细 + * + * @param dmsPlanLubeDetail 润滑计划明细 + * @return 结果 + */ + @Override + public int insertDmsPlanLubeDetail(DmsPlanLubeDetail dmsPlanLubeDetail) + { + dmsPlanLubeDetail.setCreateBy(SecurityUtils.getUsername()); + dmsPlanLubeDetail.setCreateTime(DateUtils.getNowDate()); + dmsPlanLubeDetail.setIsFlag(1l); + return dmsPlanLubeDetailMapper.insertDmsPlanLubeDetail(dmsPlanLubeDetail); + } + + /** + * 修改润滑计划明细 + * + * @param dmsPlanLubeDetail 润滑计划明细 + * @return 结果 + */ + @Override + public int updateDmsPlanLubeDetail(DmsPlanLubeDetail dmsPlanLubeDetail) + { + dmsPlanLubeDetail.setUpdateBy(SecurityUtils.getUsername()); + dmsPlanLubeDetail.setUpdateTime(DateUtils.getNowDate()); + return dmsPlanLubeDetailMapper.updateDmsPlanLubeDetail(dmsPlanLubeDetail); + } + + /** + * 批量删除润滑计划明细 + * + * @param planLubeDetailIds 需要删除的润滑计划明细主键 + * @return 结果 + */ + @Override + public int deleteDmsPlanLubeDetailByPlanLubeDetailIds(Long[] planLubeDetailIds) + { + return dmsPlanLubeDetailMapper.deleteDmsPlanLubeDetailByPlanLubeDetailIds(planLubeDetailIds); + } + + /** + * 删除润滑计划明细信息 + * + * @param planLubeDetailId 润滑计划明细主键 + * @return 结果 + */ + @Override + public int deleteDmsPlanLubeDetailByPlanLubeDetailId(Long planLubeDetailId) + { + return dmsPlanLubeDetailMapper.deleteDmsPlanLubeDetailByPlanLubeDetailId(planLubeDetailId); + } +}