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); + } +}