package com.gkhy.safePlatform.safeCheck.service;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.gkhy.safePlatform.commons.co.ContextCacheUser;
|
import com.gkhy.safePlatform.safeCheck.model.dto.req.*;
|
import com.gkhy.safePlatform.safeCheck.model.dto.resp.*;
|
|
import java.util.HashMap;
|
import java.util.List;
|
|
public interface SafeCheckBaseManagerService {
|
|
/**
|
* @description 获取巡检指标的单元及类型(有效状态)
|
*/
|
List<SafeCheckQuotaTypeRespDTO> listQuotaType();
|
|
/**
|
* @description 获取巡检区域类型(有效状态)
|
*/
|
List<SafeCheckRegionTypeRespDTO> listRegionType();
|
|
/**
|
* @description 获取所有巡检区域名称(有效状态)
|
*/
|
List<SafeCheckRegionNameRespDTO> listRegionName();
|
|
/**
|
* @description 获取所有有效的RFID名称(有效状态)
|
*/
|
List<SafeCheckRfidNameRespDTO> listRfidName();
|
|
/**
|
* @description 新增巡检区域
|
*/
|
int saveRegion(ContextCacheUser currentUser, SafeCheckRegionReqDTO safeCheckRegionReqDTO);
|
|
/**
|
* @description 根据id删除巡检区域
|
*/
|
int deleteRegionById(ContextCacheUser currentUser, Long id);
|
|
/**
|
* @description 根据id更新巡检区域
|
*/
|
void updateRegionById(ContextCacheUser currentUser, SafeCheckRegionReqDTO safeCheckRegionReqDTO);
|
|
/**
|
* @description 条件分页查询所有的区域 没有条件就是全部查询
|
*/
|
Page listRegionByPage(Page pageInfo, HashMap<String, Object> selectCondition,ContextCacheUser currentUser);
|
|
/**
|
* @description 根据巡检区域id、未删除标志查询巡检数据
|
*/
|
SafeCheckRegionRespDTO getRegionById(Long id);
|
|
/**
|
* @description 新增巡检指标
|
*/
|
int saveQuota(ContextCacheUser currentUser, SafeCheckQuotaReqDTO safeCheckQuotaReqDTO);
|
|
/**
|
* @description 根据巡检指标id删除巡检指标
|
*/
|
void deleteQuotaById(ContextCacheUser currentUser, Long quotaId);
|
|
/**
|
* @description 根据巡检指标id修改巡检指标
|
*/
|
void updateQuotaById(ContextCacheUser currentUser, SafeCheckQuotaReqDTO safeCheckQuotaReqDTO);
|
|
/**
|
* @description 根据巡检指标id获取巡检指标
|
*/
|
SafeCheckQuotaUpdateRespDTO getQuataById(Long id);
|
|
/**
|
* @description 根据巡检指标name获取巡检指标
|
*/
|
SafeCheckQuotaRespDTO getQuotaByName(String quotaName);
|
|
/**
|
* @description 分页获取当前页中的巡检指标信息
|
*/
|
Page listQuotaByPage(Page pageInfo,String quotaName);
|
|
|
/**
|
* @description 新增巡检区域rfid
|
*
|
*/
|
void saveRfid(ContextCacheUser currentUser, SafeCheckRfidReqDTO safeCheckRfidReqDTO);
|
|
/**
|
* @description 条件分页查询 没有条件就是全部查询
|
*/
|
Page listRfidByPage(Page pageInfo, SafeCheckRfidPageReqDTO safeCheckRfidPageReqDTO,ContextCacheUser currentUser);
|
|
/**
|
* @description 根据RFID的id值删除rfid
|
*/
|
void deleteRfidById(ContextCacheUser currentUser, int rfidId);
|
|
/**
|
* @description 根据RFID的id值获取RFID
|
*/
|
SafeCheckRfidRespDTO getRfidById(int rfidId);
|
|
/**
|
* @description 根据RFID的id更新RFID
|
*/
|
void updateRfidById(ContextCacheUser currentUser, SafeCheckRfidReqDTO safeCheckRfidReqDTO);
|
|
/**
|
* @description 新增巡检点
|
*/
|
void savePoint(ContextCacheUser currentUser, SafeCheckPointReqDTO safeCheckPointReqDTO);
|
|
/**
|
* @description 根据巡检点id删除巡检点
|
*/
|
void deletePointById(ContextCacheUser currentUser,Long id);
|
|
/**
|
* @description 根据巡检点id查询数据
|
*/
|
SafeCheckPointRespDTO getPointById(Long id);
|
|
/**
|
* @description 根据id更新巡检点
|
*/
|
void updatePointById(ContextCacheUser currentUser, SafeCheckPointReqDTO safeCheckPointReqDTO);
|
|
/**
|
* @description 查询所有巡检点数据并进行分页展示
|
*/
|
Page listPointByPage(Page pageInfo, SafeCheckPointPageReqDTO safeCheckPointPageReqDTO,ContextCacheUser currentUser);
|
|
/**
|
* @description 获取所有巡检点、巡检区域、巡检rfid的id值
|
*/
|
List<SafeCheckPointRespDTO> getPointRegionRfidId();
|
|
|
/**
|
* 获取所有的巡检指标
|
*/
|
List<ListQuotasRespDTO> listQuotas(ContextCacheUser currentUser);
|
}
|