From 64efb660b2c119c00432434c0f651f8996483f18 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期五, 21 二月 2025 15:51:13 +0800 Subject: [PATCH] OSD大华数据格式+数据中心重点标签统计数 --- ycl-server/src/main/java/com/ycl/platform/service/IYwThresholdService.java | 118 +++++++++++++++++++++++++++++++++++++---------------------- 1 files changed, 74 insertions(+), 44 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/service/IYwThresholdService.java b/ycl-server/src/main/java/com/ycl/platform/service/IYwThresholdService.java index e1197ff..15bed87 100644 --- a/ycl-server/src/main/java/com/ycl/platform/service/IYwThresholdService.java +++ b/ycl-server/src/main/java/com/ycl/platform/service/IYwThresholdService.java @@ -1,32 +1,39 @@ package com.ycl.platform.service; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.platform.domain.dto.CarDTO; -import com.ycl.platform.domain.dto.FaceDTO; -import com.ycl.platform.domain.dto.VideoDTO; +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.platform.domain.entity.WorkOrder; +import com.ycl.platform.domain.entity.WorkOrderWhite; import com.ycl.platform.domain.entity.YwThreshold; -import com.ycl.platform.domain.form.CarThresholdForm; -import com.ycl.platform.domain.form.FaceThresholdForm; -import com.ycl.platform.domain.form.VideoThresholdForm; -import com.ycl.platform.mapper.YwThresholdMapper; +import com.ycl.platform.domain.excel.PointExport; +import com.ycl.platform.domain.query.WorkOrderWhiteQuery; +import com.ycl.platform.domain.result.HK.FaceDeviceInspectionResult; +import com.ycl.platform.domain.result.HK.VehicleDeviceInspectionResult; +import com.ycl.system.Result; +import com.ycl.system.page.TableDataInfo; +import enumeration.CompareType; +import jakarta.servlet.http.HttpServletResponse; +import org.springframework.web.multipart.MultipartFile; +import java.io.IOException; import java.util.List; +import java.util.Map; +import java.util.concurrent.ExecutionException; /** * 杩愮淮闃堝�糞ervice鎺ュ彛 * * @author gonghl - * @date 2024-03-25 + * @date 2024-07-19 */ -public interface IYwThresholdService { +public interface IYwThresholdService extends IService<YwThreshold> +{ /** * 鏌ヨ杩愮淮闃堝�� * * @param id 杩愮淮闃堝�间富閿� * @return 杩愮淮闃堝�� */ - public YwThreshold selectYwThresholdById(Integer id); + public YwThreshold selectYwThresholdById(Long id); /** * 鏌ヨ杩愮淮闃堝�煎垪琛� @@ -34,7 +41,7 @@ * @param ywThreshold 杩愮淮闃堝�� * @return 杩愮淮闃堝�奸泦鍚� */ - public List<YwThreshold> selectYwThresholdList(YwThreshold ywThreshold); + public Map<String, List<YwThreshold>> selectYwThresholdList(YwThreshold ywThreshold); /** * 鏂板杩愮淮闃堝�� @@ -50,7 +57,7 @@ * @param ywThreshold 杩愮淮闃堝�� * @return 缁撴灉 */ - public int updateYwThreshold(YwThreshold ywThreshold); + public Boolean updateYwThreshold(List<YwThreshold> ywThreshold); /** * 鎵归噺鍒犻櫎杩愮淮闃堝�� @@ -58,7 +65,7 @@ * @param ids 闇�瑕佸垹闄ょ殑杩愮淮闃堝�间富閿泦鍚� * @return 缁撴灉 */ - public int deleteYwThresholdByIds(Integer[] ids); + public int deleteYwThresholdByIds(Long[] ids); /** * 鍒犻櫎杩愮淮闃堝�间俊鎭� @@ -66,53 +73,76 @@ * @param id 杩愮淮闃堝�间富閿� * @return 缁撴灉 */ - public int deleteYwThresholdById(Integer id); + public int deleteYwThresholdById(Long id); /** - * 淇敼浜鸿劯闃堝�� - * - * @param form - * @return + * 鍒ゆ柇杞﹁締闃堝�兼潯浠� */ - int editFace(FaceThresholdForm form); + public void carCheck(List<VehicleDeviceInspectionResult> list); /** - * 淇敼杞﹁締闃堝�� - * - * @param form - * @return + * 鍒ゆ柇浜鸿劯闃堝�兼潯浠� */ - int editCar(CarThresholdForm form); + public void faceCheck(List<FaceDeviceInspectionResult> list); /** - * 淇敼瑙嗛闃堝�� - * - * @param form - * @return + * 鍒ゆ柇瑙嗛闃堝�兼潯浠� */ - int editVideo(VideoThresholdForm form); + public void videoCheck(List list); /** - * 妫�鏌ヤ汉鑴告暟鎹槸鍚﹁鐢熸垚宸ュ崟 - * - * @param faceList 浜鸿劯鏁版嵁 - * @return 鏄惁鐢熸垚宸ュ崟 + * 闃堝�兼棤娉曞垽鏂殑锛屾牎楠屾晠闅滅被鍨嬬敓鎴愬伐鍗曘�備紭浜� */ - Boolean checkFace(List<FaceDTO> faceList); + public void errorTypeCheckUY(List list); + /** - * 妫�鏌ヨ溅杈嗘暟鎹槸鍚﹁鐢熸垚宸ュ崟 + * 宸ュ崟鐧藉悕鍗曞垪琛� * - * @param carList 杞﹁締鏁版嵁 - * @return 鏄惁鐢熸垚宸ュ崟 + * @param workOrderWhiteQuery 鐧借壊宸ュ崟鏌ヨ + * @return {@link TableDataInfo } + * @author */ - Boolean checkCar(List<CarDTO> carList); + Result selectWorkOrderWhiteList(WorkOrderWhiteQuery workOrderWhiteQuery); /** - * 妫�鏌ヨ棰戞暟鎹槸鍚﹁鐢熸垚宸ュ崟 + * 娣诲姞宸ュ崟鐧藉悕鍗� * - * @param videoList - * @return 鏄惁鐢熸垚宸ュ崟 + * @param workOrderWhite 鐧借壊宸ュ崟 + * @return {@link Result } + * @author */ - Boolean checkVideo(List<VideoDTO> videoList); + Result addWorkOrderWhite(WorkOrderWhite workOrderWhite); + + /** + * 鎵归噺鍒犻櫎宸ュ崟鐧藉悕鍗� + * + * @param ids ids + * @author + */ + Result batchDeleteWorkOrderWhite(List<String> ids); + + + Result selectWorkOrderWhiteDetail(Integer id); + + Result updateWorkOrderWhite(WorkOrderWhite workOrderWhite); + /** + * 瀵煎嚭鏁版嵁 + * + * @param response + */ + void whiteExport(HttpServletResponse response) throws IOException; + /** + * 鎵归噺瀵煎叆宸ュ崟鐧藉悕鍗� + * + * @author + */ + Result importWhite(MultipartFile file) throws IOException; + + public Map<String, YwThreshold> getYwThresholdMap(String name); + public <T extends Comparable<T>> void check(String key, T value, String serialNumber, Map<String, YwThreshold> thresholds, WorkOrder workOrder, CompareType compareType, String errorType); + + + Result addBatch (WorkOrderWhite workOrderWhite); + } -- Gitblit v1.8.0