From 55bc47597ec70b4403c6c8edbae493bad0c3ca56 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期一, 22 四月 2024 09:05:45 +0800
Subject: [PATCH] 调用优云、海康威视接口响应DTO
---
ycl-server/src/main/java/com/ycl/platform/service/impl/DefaultResultServiceImpl.java | 97 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 97 insertions(+), 0 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/service/impl/DefaultResultServiceImpl.java b/ycl-server/src/main/java/com/ycl/platform/service/impl/DefaultResultServiceImpl.java
new file mode 100644
index 0000000..69d4e81
--- /dev/null
+++ b/ycl-server/src/main/java/com/ycl/platform/service/impl/DefaultResultServiceImpl.java
@@ -0,0 +1,97 @@
+package com.ycl.platform.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ycl.platform.domain.entity.DefaultResult;
+import com.ycl.platform.mapper.DefaultResultMapper;
+import com.ycl.platform.service.IDefaultResultService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import utils.DateUtils;
+
+import java.util.List;
+
+/**
+ * 鍚堝悓鑰冩牳缁撴灉Service涓氬姟灞傚鐞�
+ *
+ * @author ruoyi
+ * @date 2024-04-01
+ */
+@Service
+public class DefaultResultServiceImpl extends ServiceImpl<DefaultResultMapper, DefaultResult> implements IDefaultResultService
+{
+ @Autowired
+ private DefaultResultMapper defaultResultMapper;
+
+ /**
+ * 鏌ヨ鍚堝悓鑰冩牳缁撴灉
+ *
+ * @param id 鍚堝悓鑰冩牳缁撴灉涓婚敭
+ * @return 鍚堝悓鑰冩牳缁撴灉
+ */
+ @Override
+ public DefaultResult selectDefaultResultById(Long id)
+ {
+ return defaultResultMapper.selectDefaultResultById(id);
+ }
+
+ /**
+ * 鏌ヨ鍚堝悓鑰冩牳缁撴灉鍒楄〃
+ *
+ * @param defaultResult 鍚堝悓鑰冩牳缁撴灉
+ * @return 鍚堝悓鑰冩牳缁撴灉
+ */
+ @Override
+ public List<DefaultResult> selectDefaultResultList(DefaultResult defaultResult)
+ {
+ return defaultResultMapper.selectDefaultResultList(defaultResult);
+ }
+
+ /**
+ * 鏂板鍚堝悓鑰冩牳缁撴灉
+ *
+ * @param defaultResult 鍚堝悓鑰冩牳缁撴灉
+ * @return 缁撴灉
+ */
+ @Override
+ public int insertDefaultResult(DefaultResult defaultResult)
+ {
+ return defaultResultMapper.insertDefaultResult(defaultResult);
+ }
+
+ /**
+ * 淇敼鍚堝悓鑰冩牳缁撴灉
+ *
+ * @param defaultResult 鍚堝悓鑰冩牳缁撴灉
+ * @return 缁撴灉
+ */
+ @Override
+ public int updateDefaultResult(DefaultResult defaultResult)
+ {
+ defaultResult.setUpdateTime(DateUtils.getNowDate());
+ return defaultResultMapper.updateDefaultResult(defaultResult);
+ }
+
+ /**
+ * 鎵归噺鍒犻櫎鍚堝悓鑰冩牳缁撴灉
+ *
+ * @param ids 闇�瑕佸垹闄ょ殑鍚堝悓鑰冩牳缁撴灉涓婚敭
+ * @return 缁撴灉
+ */
+ @Override
+ public int deleteDefaultResultByIds(Long[] ids)
+ {
+ return defaultResultMapper.deleteDefaultResultByIds(ids);
+ }
+
+ /**
+ * 鍒犻櫎鍚堝悓鑰冩牳缁撴灉淇℃伅
+ *
+ * @param id 鍚堝悓鑰冩牳缁撴灉涓婚敭
+ * @return 缁撴灉
+ */
+ @Override
+ public int deleteDefaultResultById(Long id)
+ {
+ return defaultResultMapper.deleteDefaultResultById(id);
+ }
+}
--
Gitblit v1.8.0