From 0d8343008b693f2020f951c6bf162993a7ebacb2 Mon Sep 17 00:00:00 2001 From: renhao Date: Fri, 20 Jun 2025 22:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=AE=A2=E6=B5=81=E4=B8=80=E5=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=95=8C=E9=9D=A2=E5=9C=B0=E5=9B=BE=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/IDklWarningThresholdService.java | 61 ++++++++++++ .../impl/DklWarningThresholdServiceImpl.java | 94 +++++++++++++++++++ 2 files changed, 155 insertions(+) create mode 100644 Dkl-Vue-master/dkl-large/src/main/java/com/dkl/large/service/IDklWarningThresholdService.java create mode 100644 Dkl-Vue-master/dkl-large/src/main/java/com/dkl/large/service/impl/DklWarningThresholdServiceImpl.java diff --git a/Dkl-Vue-master/dkl-large/src/main/java/com/dkl/large/service/IDklWarningThresholdService.java b/Dkl-Vue-master/dkl-large/src/main/java/com/dkl/large/service/IDklWarningThresholdService.java new file mode 100644 index 0000000..ce3eaf8 --- /dev/null +++ b/Dkl-Vue-master/dkl-large/src/main/java/com/dkl/large/service/IDklWarningThresholdService.java @@ -0,0 +1,61 @@ +package com.dkl.large.service; + +import java.util.List; +import com.dkl.large.domain.DklWarningThreshold; + +/** + * 容量阀值Service接口 + * + * @author Dkl + * @date 2025-06-07 + */ +public interface IDklWarningThresholdService +{ + /** + * 查询容量阀值 + * + * @param id 容量阀值主键 + * @return 容量阀值 + */ + public DklWarningThreshold selectDklWarningThresholdById(Integer id); + + /** + * 查询容量阀值列表 + * + * @param dklWarningThreshold 容量阀值 + * @return 容量阀值集合 + */ + public List selectDklWarningThresholdList(DklWarningThreshold dklWarningThreshold); + + /** + * 新增容量阀值 + * + * @param dklWarningThreshold 容量阀值 + * @return 结果 + */ + public int insertDklWarningThreshold(DklWarningThreshold dklWarningThreshold); + + /** + * 修改容量阀值 + * + * @param dklWarningThreshold 容量阀值 + * @return 结果 + */ + public int updateDklWarningThreshold(DklWarningThreshold dklWarningThreshold); + + /** + * 批量删除容量阀值 + * + * @param ids 需要删除的容量阀值主键集合 + * @return 结果 + */ + public int deleteDklWarningThresholdByIds(int[] ids); + + /** + * 删除容量阀值信息 + * + * @param id 容量阀值主键 + * @return 结果 + */ + public int deleteDklWarningThresholdById(Integer id); +} diff --git a/Dkl-Vue-master/dkl-large/src/main/java/com/dkl/large/service/impl/DklWarningThresholdServiceImpl.java b/Dkl-Vue-master/dkl-large/src/main/java/com/dkl/large/service/impl/DklWarningThresholdServiceImpl.java new file mode 100644 index 0000000..6c5f1f2 --- /dev/null +++ b/Dkl-Vue-master/dkl-large/src/main/java/com/dkl/large/service/impl/DklWarningThresholdServiceImpl.java @@ -0,0 +1,94 @@ +package com.dkl.large.service.impl; + +import java.util.List; +import com.dkl.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.dkl.large.mapper.DklWarningThresholdMapper; +import com.dkl.large.domain.DklWarningThreshold; +import com.dkl.large.service.IDklWarningThresholdService; + +/** + * 容量阀值Service业务层处理 + * + * @author Dkl + * @date 2025-06-07 + */ +@Service +public class DklWarningThresholdServiceImpl implements IDklWarningThresholdService +{ + @Autowired + private DklWarningThresholdMapper dklWarningThresholdMapper; + + /** + * 查询容量阀值 + * + * @param id 容量阀值主键 + * @return 容量阀值 + */ + @Override + public DklWarningThreshold selectDklWarningThresholdById(Integer id) + { + return dklWarningThresholdMapper.selectDklWarningThresholdById(id); + } + + /** + * 查询容量阀值列表 + * + * @param dklWarningThreshold 容量阀值 + * @return 容量阀值 + */ + @Override + public List selectDklWarningThresholdList(DklWarningThreshold dklWarningThreshold) + { + return dklWarningThresholdMapper.selectDklWarningThresholdList(dklWarningThreshold); + } + + /** + * 新增容量阀值 + * + * @param dklWarningThreshold 容量阀值 + * @return 结果 + */ + @Override + public int insertDklWarningThreshold(DklWarningThreshold dklWarningThreshold) + { + return dklWarningThresholdMapper.insertDklWarningThreshold(dklWarningThreshold); + } + + /** + * 修改容量阀值 + * + * @param dklWarningThreshold 容量阀值 + * @return 结果 + */ + @Override + public int updateDklWarningThreshold(DklWarningThreshold dklWarningThreshold) + { + return dklWarningThresholdMapper.updateDklWarningThreshold(dklWarningThreshold); + } + + /** + * 批量删除容量阀值 + * + * @param ids 需要删除的容量阀值主键 + * @return 结果 + */ + @Override + public int deleteDklWarningThresholdByIds(int[] ids) + { + return dklWarningThresholdMapper.deleteDklWarningThresholdByIds(ids); + } + + /** + * 删除容量阀值信息 + * + * @param id 容量阀值主键 + * @return 结果 + */ + @Override + public int deleteDklWarningThresholdById(Integer id) + { + return dklWarningThresholdMapper.deleteDklWarningThresholdById(id); + } +}