package com.ycl.platform.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.ycl.platform.base.BaseSelect;
|
import com.ycl.platform.domain.entity.ReportAuditingRecord;
|
import com.ycl.platform.domain.entity.YwPoint;
|
import com.ycl.platform.domain.query.DataCenterQuery;
|
import com.ycl.platform.domain.query.YwPointQuery;
|
import com.ycl.platform.domain.vo.CheckTagVO;
|
import com.ycl.platform.domain.vo.PointDetailVO;
|
import com.ycl.platform.domain.vo.ReportAuditingRecordVO;
|
import com.ycl.platform.domain.vo.YwPointVO;
|
import com.ycl.platform.domain.excel.PointExport;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* 运维点位 Mapper 接口
|
*
|
* @author xp
|
* @since 2024-03-05
|
*/
|
@Mapper
|
public interface YwPointMapper extends BaseMapper<YwPoint> {
|
|
/**
|
* 下拉数据
|
* @param keyword
|
* @param unitId
|
* @return
|
*/
|
List<BaseSelect> selectData(@Param("keyword") String keyword, @Param("unitId") Integer unitId);
|
|
IPage page(IPage<YwPointVO> page, @Param("query") YwPointQuery query);
|
|
|
/**
|
* 首页到期预警
|
* @return 数据
|
*/
|
List<YwPoint> home();
|
|
/**
|
* 导出数据
|
*
|
* @param query
|
* @return
|
*/
|
List<PointExport> export(@Param("query") YwPointQuery query);
|
|
void deleteAll();
|
|
/**
|
* 更新点位信息
|
*
|
* @param pointList
|
*/
|
int updatePoint(@Param("pointList") List<YwPoint> pointList,@Param("needUpdateUnit")Boolean needUpdateUnit);
|
|
/**
|
* 统计某点位对应的未完成工单数量,理论上最大值为1个工单
|
*
|
* @param pointId
|
* @return
|
*/
|
YwPointVO countNotFinishedWorkOrderByPointId(@Param("pointId") Integer pointId);
|
|
/**
|
* 统计某点位对应的未完成工单数量,理论上最大值为1个工单
|
*
|
* @param serialNumber
|
* @return
|
*/
|
YwPointVO countNotFinishedWorkOrderByGb(@Param("serialNumber") String serialNumber);
|
|
/**
|
* 查询有部级标签的点位的国标码
|
*
|
* @param tagType 0 部级 1 重点 2 重点指挥图像
|
* @return
|
*/
|
List<String> getDeptPointGB(@Param("tagType") Integer tagType);
|
|
/**
|
* 点位下拉
|
*
|
* @param keyword
|
* @param unitId
|
* @return
|
*/
|
List<YwPoint> select(@Param("keyword") String keyword, @Param("unitId") Integer unitId);
|
|
/**
|
* 获取最新一条报备结果
|
* @param serialNumber
|
* @param reportType
|
* @return
|
*/
|
ReportAuditingRecordVO getReportResult(@Param("serialNumber") String serialNumber, @Param("reportType") String reportType);
|
|
/**
|
* 通过国标获取标签信息
|
*
|
* @param gbList
|
* @return
|
*/
|
List<CheckTagVO> getTagsByGB(@Param("gbList") List<String> gbList);
|
|
|
/**
|
* 设备数量
|
* @param examineCategory
|
* @param examineTag
|
* @return
|
*/
|
List<YwPointVO> selectToCount(Short examineCategory, Short examineTag);
|
|
void myUpdateById(YwPoint entity);
|
}
|