From c83101eb62f5d4906b9c01ceea6b21a37f9e84d8 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 18 十一月 2025 09:24:53 +0800
Subject: [PATCH] bug修复
---
ycl-server/src/main/java/com/ycl/platform/service/IYwThresholdService.java | 113 ++++++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 85 insertions(+), 28 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 efa5b47..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,29 +1,39 @@
package com.ycl.platform.service;
-
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+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);
/**
* 鏌ヨ杩愮淮闃堝�煎垪琛�
@@ -31,7 +41,7 @@
* @param ywThreshold 杩愮淮闃堝��
* @return 杩愮淮闃堝�奸泦鍚�
*/
- public List<YwThreshold> selectYwThresholdList(YwThreshold ywThreshold);
+ public Map<String, List<YwThreshold>> selectYwThresholdList(YwThreshold ywThreshold);
/**
* 鏂板杩愮淮闃堝��
@@ -47,7 +57,7 @@
* @param ywThreshold 杩愮淮闃堝��
* @return 缁撴灉
*/
- public int updateYwThreshold(YwThreshold ywThreshold);
+ public Boolean updateYwThreshold(List<YwThreshold> ywThreshold);
/**
* 鎵归噺鍒犻櫎杩愮淮闃堝��
@@ -55,7 +65,7 @@
* @param ids 闇�瑕佸垹闄ょ殑杩愮淮闃堝�间富閿泦鍚�
* @return 缁撴灉
*/
- public int deleteYwThresholdByIds(Integer[] ids);
+ public int deleteYwThresholdByIds(Long[] ids);
/**
* 鍒犻櫎杩愮淮闃堝�间俊鎭�
@@ -63,29 +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);
+
+ /**
+ * 闃堝�兼棤娉曞垽鏂殑锛屾牎楠屾晠闅滅被鍨嬬敓鎴愬伐鍗曘�備紭浜�
+ */
+ public void errorTypeCheckUY(List list);
+
+
+ /**
+ * 宸ュ崟鐧藉悕鍗曞垪琛�
+ *
+ * @param workOrderWhiteQuery 鐧借壊宸ュ崟鏌ヨ
+ * @return {@link TableDataInfo }
+ * @author
+ */
+ Result selectWorkOrderWhiteList(WorkOrderWhiteQuery workOrderWhiteQuery);
+
+ /**
+ * 娣诲姞宸ュ崟鐧藉悕鍗�
+ *
+ * @param workOrderWhite 鐧借壊宸ュ崟
+ * @return {@link Result }
+ * @author
+ */
+ 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