From b20931da45368031ec19e37816b6879bdcba528e Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期五, 26 七月 2024 17:51:51 +0800
Subject: [PATCH] feat:合同导入

---
 ycl-server/src/main/java/com/ycl/task/HKTask.java |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/ycl-server/src/main/java/com/ycl/task/HKTask.java b/ycl-server/src/main/java/com/ycl/task/HKTask.java
index e508811..32b9c59 100644
--- a/ycl-server/src/main/java/com/ycl/task/HKTask.java
+++ b/ycl-server/src/main/java/com/ycl/task/HKTask.java
@@ -7,6 +7,7 @@
 import com.ycl.platform.domain.result.HK.FaceDeviceInspectionResult;
 import com.ycl.platform.domain.result.HK.VehicleDeviceInspectionResult;
 import com.ycl.platform.mapper.YwThresholdMapper;
+import com.ycl.platform.service.IYwThresholdService;
 import com.ycl.web.HKClient;
 import enumeration.BusinessType;
 import enumeration.general.BusinessTypeEnum;
@@ -30,7 +31,7 @@
     @Autowired
     private HKClient hkClient;
     @Autowired
-    private YwThresholdMapper thresholdMapper;
+    private IYwThresholdService ywThresholdService;
 
     private final static Integer pageNo = 1;
     private final static Integer pageSize = 5000;
@@ -53,10 +54,11 @@
             if (CollectionUtils.isEmpty(list)) {
                 throw new RuntimeException("杞﹁締璁惧鍏ㄦ鎸囨爣鐩戞祴缁撴灉鏁版嵁涓虹┖");
             }
-            //TODO:鍚屾鐨勬暟鎹彲鑳介渶瑕佸伐鍗曢槇鍊肩瓑澶勭悊
-            List<YwThreshold> ywThresholds = thresholdMapper.selectByType(BusinessTypeEnum.CAR.name());
             //瀛樻斁鍦╩ongo涓�
             mongoTemplate.insert(list);
+            //鍚屾鐨勬暟鎹繘琛屽伐鍗曢槇鍊煎鐞�
+            ywThresholdService.carCheck(list);
+
         } else {
             log.error("鍚屾杞﹁締璁惧鍏ㄦ鎸囨爣鐩戞祴缁撴灉澶辫触", jsonObject);
         }
@@ -79,10 +81,10 @@
             if (CollectionUtils.isEmpty(list)) {
                 throw new RuntimeException("浜鸿劯璁惧鍏ㄦ鎸囨爣鐩戞祴缁撴灉鏁版嵁涓虹┖");
             }
-            //TODO:鍚屾鐨勬暟鎹彲鑳介渶瑕佸伐鍗曢槇鍊肩瓑澶勭悊
-
             //瀛樻斁鍦╩ongo涓�
             mongoTemplate.insert(list);
+            //鍚屾鐨勬暟鎹繘琛屽伐鍗曢槇鍊煎鐞�
+            ywThresholdService.faceCheck(list);
         } else {
             log.error("鍚屾浜鸿劯璁惧鍏ㄦ鎸囨爣鐩戞祴缁撴灉澶辫触", jsonObject);
         }

--
Gitblit v1.8.0