| | |
| | | package com.ycl.platform.service; |
| | | |
| | | import com.ycl.platform.domain.entity.YwPoint; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.platform.domain.entity.ReportAuditingRecord; |
| | | import com.ycl.platform.domain.entity.YwPoint; |
| | | import com.ycl.platform.domain.excel.PointExport; |
| | | import com.ycl.platform.domain.form.BatchEditPointForm; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.YwPointForm; |
| | | import com.ycl.platform.domain.query.YwPointQuery; |
| | | import com.ycl.platform.domain.result.BaseResult; |
| | | import com.ycl.platform.domain.vo.CheckTagVO; |
| | | import com.ycl.platform.domain.vo.ReportAuditingRecordVO; |
| | | import com.ycl.system.Result; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.concurrent.ExecutionException; |
| | | |
| | | /** |
| | | * 运维点位 服务类 |
| | |
| | | * @return |
| | | */ |
| | | Result batchEdit(BatchEditPointForm form); |
| | | |
| | | /** |
| | | * 点位下拉 |
| | | * |
| | | * @param keyword |
| | | * @return |
| | | */ |
| | | Result select(String keyword); |
| | | |
| | | /** |
| | | * 批量同步状态 |
| | | * |
| | | * @param serialNumberList 设备编号 |
| | | * @param recovery 状态 |
| | | * @return 数量 |
| | | */ |
| | | boolean updateRecovery(List<String> serialNumberList, int recovery); |
| | | |
| | | /** |
| | | * 首页到期预警 |
| | | * @return 数据 |
| | | */ |
| | | List<YwPoint> home(); |
| | | |
| | | /** |
| | | * 导出数据 |
| | | * |
| | | * @param query |
| | | * @param response |
| | | */ |
| | | void export(YwPointQuery query, HttpServletResponse response) throws IOException; |
| | | |
| | | /** |
| | | * 导入数据 |
| | | * |
| | | * @param file |
| | | * @param unitId 运维单位id |
| | | * @return |
| | | */ |
| | | Result importData(MultipartFile file, Integer unitId, Date startTime, Date endTime, Boolean needUpdateUnit) throws IOException, ExecutionException, InterruptedException; |
| | | |
| | | /** |
| | | * 获取报备是否审核通过(最新一条) |
| | | * @param reportType |
| | | * @return |
| | | */ |
| | | ReportAuditingRecordVO getReportResult(String serialNumber, String reportType); |
| | | |
| | | /** |
| | | * 根据国标设置tag |
| | | * |
| | | * @param dataList 数据 |
| | | * @return |
| | | */ |
| | | <T extends BaseResult> void setDeviceTagByGB(List<T> dataList,Short category); |
| | | |
| | | /** |
| | | * 根据国标设置是否新点位 |
| | | * |
| | | * @param dataList 数据 |
| | | * @return |
| | | */ |
| | | <T extends BaseResult> void setNew(List<T> dataList); |
| | | |
| | | void updatePoint(List<PointExport> dataList, Integer unitId, Date startTime, Date endTime, Boolean needUpdateUnit) throws ExecutionException, InterruptedException; |
| | | |
| | | void updateDynamic(List<PointExport> dataList); |
| | | |
| | | /** |
| | | * 根据设备编码查询点位信息 |
| | | * |
| | | * @param serialNumber 序列号 |
| | | * @return {@link YwPoint } |
| | | * @author |
| | | */ |
| | | YwPoint selectBySerialNumber(String serialNumber); |
| | | } |