From 77ce942a696de881cc703745b8b1d112ddb70fa5 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 22 七月 2024 18:45:44 +0800 Subject: [PATCH] 车辆数据阈值检查接口 --- ycl-server/src/main/java/com/ycl/task/HKTask.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 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..d4bf4be 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,10 @@ 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); } -- Gitblit v1.8.0