From b5df1cee65f3e9dcf554efcd3f1642a8c79d1e76 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 30 九月 2024 02:12:24 +0800 Subject: [PATCH] 点位监测更换对象+存入mongo+提取utils --- ycl-server/src/main/java/com/ycl/platform/service/IYwThresholdService.java | 72 ++++++++++-------------------------- 1 files changed, 20 insertions(+), 52 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..d8cbad3 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,28 @@ 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.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.result.HK.FaceDeviceInspectionResult; +import com.ycl.platform.domain.result.HK.VehicleDeviceInspectionResult; import java.util.List; +import java.util.Map; /** * 杩愮淮闃堝�糞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 +30,7 @@ * @param ywThreshold 杩愮淮闃堝�� * @return 杩愮淮闃堝�奸泦鍚� */ - public List<YwThreshold> selectYwThresholdList(YwThreshold ywThreshold); + public Map<String, List<YwThreshold>> selectYwThresholdList(YwThreshold ywThreshold); /** * 鏂板杩愮淮闃堝�� @@ -50,7 +46,7 @@ * @param ywThreshold 杩愮淮闃堝�� * @return 缁撴灉 */ - public int updateYwThreshold(YwThreshold ywThreshold); + public Boolean updateYwThreshold(List<YwThreshold> ywThreshold); /** * 鎵归噺鍒犻櫎杩愮淮闃堝�� @@ -58,7 +54,7 @@ * @param ids 闇�瑕佸垹闄ょ殑杩愮淮闃堝�间富閿泦鍚� * @return 缁撴灉 */ - public int deleteYwThresholdByIds(Integer[] ids); + public int deleteYwThresholdByIds(Long[] ids); /** * 鍒犻櫎杩愮淮闃堝�间俊鎭� @@ -66,53 +62,25 @@ * @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); - - /** - * 妫�鏌ヨ溅杈嗘暟鎹槸鍚﹁鐢熸垚宸ュ崟 - * - * @param carList 杞﹁締鏁版嵁 - * @return 鏄惁鐢熸垚宸ュ崟 - */ - Boolean checkCar(List<CarDTO> carList); - - /** - * 妫�鏌ヨ棰戞暟鎹槸鍚﹁鐢熸垚宸ュ崟 - * - * @param videoList - * @return 鏄惁鐢熸垚宸ュ崟 - */ - Boolean checkVideo(List<VideoDTO> videoList); + public void errorTypeCheckUY(List list); } -- Gitblit v1.8.0