package com.gkhy.safePlatform.doublePrevention.service.baseService; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; import com.gkhy.safePlatform.doublePrevention.entity.PreventProduceDevice; import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventProduceDeviceQueryReqDTO; import com.gkhy.safePlatform.doublePrevention.entity.statistics.DeviceEveryLevelCountDO; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventProduceDeviceDeleteParams; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventProduceDeviceQueryParams; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventProduceDeviceUpdateParams; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** * (PreventProduceDevice)表服务接口 * * @author makejava * @since 2022-06-25 10:40:17 */ public interface PreventProduceDeviceService extends IService { /** * 生产装置-分页查询 * */ IPage getDevicePage(Page page, PreventProduceDeviceQueryParams queryParams); /** * 生产装置-根绝风险等级查询 * */ PreventProduceDevice getByLevel(Byte riskLevel); /** * 生产装置-根绝设备名称和所在位置查询 * */ PreventProduceDevice selectByNameAndLocation(String produceDeviceName, String location); /** * 生产装置-新增 * */ int saveDevice(PreventProduceDevice device); /** * 生产装置-删除 */ int deleteById(PreventProduceDeviceDeleteParams param); /** * 生产装置-修改信息 */ int updateProduceDevice(PreventProduceDeviceUpdateParams updateParams); /** * 生产装置-查询-通过设备名称 */ PreventProduceDevice getDeviceByName(String produceDeviceName); /** * 生产装置-查询-通过id */ PreventProduceDevice getDeviceById(Long id); /** * 生产装置- 查询生产装置列表 */ List getListDevices(); /** * @Description: 统计各生产装置等级的数量 */ DeviceEveryLevelCountDO countDeviceEveryLevel(); }