From a43cb7a7616c390e1b1fabd3602798afd7d81907 Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期日, 14 一月 2024 15:23:56 +0800
Subject: [PATCH] 视频
---
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java | 19 ++++++++++---------
ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarController.java | 4 ++--
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java | 31 +++++++++++++++++++++----------
3 files changed, 33 insertions(+), 21 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarController.java b/ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarController.java
index c9cb84e..4bd854e 100644
--- a/ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarController.java
+++ b/ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarController.java
@@ -44,7 +44,7 @@
/**
* 涓変竴杞﹁締Controller
- *
+ *
* @author ard
* @date 2023-06-26
*/
@@ -460,7 +460,7 @@
@GetMapping("getThreeOne")
@ApiOperation("鑾峰彇涓変竴瑙嗛鍦板潃")
public AjaxResult getThreeOne() {
- return AjaxResult.success("鑾峰彇鍦板潃鎴愬姛锛�",sysConfigService.selectConfigByKey("threeOneVideo"));
+ return AjaxResult.success("鑾峰彇鍦板潃鎴愬姛锛�",sysConfigService.getSYVideo());
}
@PreAuthorize("@ss.hasPermi('sy:syCar:getAlarmHPfmCountDetail')")
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java
index b54d784..a391a7d 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java
@@ -5,14 +5,14 @@
/**
* 鍙傛暟閰嶇疆 鏈嶅姟灞�
- *
+ *
* @author ruoyi
*/
public interface ISysConfigService
{
/**
* 鏌ヨ鍙傛暟閰嶇疆淇℃伅
- *
+ *
* @param configId 鍙傛暟閰嶇疆ID
* @return 鍙傛暟閰嶇疆淇℃伅
*/
@@ -20,7 +20,7 @@
/**
* 鏍规嵁閿悕鏌ヨ鍙傛暟閰嶇疆淇℃伅
- *
+ *
* @param configKey 鍙傛暟閿悕
* @return 鍙傛暟閿��
*/
@@ -28,14 +28,14 @@
/**
* 鑾峰彇楠岃瘉鐮佸紑鍏�
- *
+ *
* @return true寮�鍚紝false鍏抽棴
*/
public boolean selectCaptchaEnabled();
/**
* 鏌ヨ鍙傛暟閰嶇疆鍒楄〃
- *
+ *
* @param config 鍙傛暟閰嶇疆淇℃伅
* @return 鍙傛暟閰嶇疆闆嗗悎
*/
@@ -43,7 +43,7 @@
/**
* 鏂板鍙傛暟閰嶇疆
- *
+ *
* @param config 鍙傛暟閰嶇疆淇℃伅
* @return 缁撴灉
*/
@@ -51,7 +51,7 @@
/**
* 淇敼鍙傛暟閰嶇疆
- *
+ *
* @param config 鍙傛暟閰嶇疆淇℃伅
* @return 缁撴灉
*/
@@ -59,7 +59,7 @@
/**
* 鎵归噺鍒犻櫎鍙傛暟淇℃伅
- *
+ *
* @param configIds 闇�瑕佸垹闄ょ殑鍙傛暟ID
*/
public void deleteConfigByIds(Long[] configIds);
@@ -81,7 +81,7 @@
/**
* 鏍¢獙鍙傛暟閿悕鏄惁鍞竴
- *
+ *
* @param config 鍙傛暟淇℃伅
* @return 缁撴灉
*/
@@ -92,6 +92,7 @@
* @return
*/
String getSYURL();
+ String getSYVideo();
/**
* 璁惧鍋ュ悍绠$悊
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java
index b82c02f..4005e6e 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java
@@ -23,7 +23,7 @@
/**
* 鍙傛暟閰嶇疆 鏈嶅姟灞傚疄鐜�
- *
+ *
* @author ruoyi
*/
@Service
@@ -46,7 +46,7 @@
/**
* 鏌ヨ鍙傛暟閰嶇疆淇℃伅
- *
+ *
* @param configId 鍙傛暟閰嶇疆ID
* @return 鍙傛暟閰嶇疆淇℃伅
*/
@@ -68,7 +68,7 @@
/**
* 鏍规嵁閿悕鏌ヨ鍙傛暟閰嶇疆淇℃伅
- *
+ *
* @param configKey 鍙傛暟key
* @return 鍙傛暟閿��
*/
@@ -93,7 +93,7 @@
/**
* 鑾峰彇楠岃瘉鐮佸紑鍏�
- *
+ *
* @return true寮�鍚紝false鍏抽棴
*/
@Override
@@ -108,7 +108,7 @@
}
/**
* 鏌ヨ鍙傛暟閰嶇疆鍒楄〃
- *
+ *
* @param config 鍙傛暟閰嶇疆淇℃伅
* @return 鍙傛暟閰嶇疆闆嗗悎
*/
@@ -128,7 +128,7 @@
/**
* 鏂板鍙傛暟閰嶇疆
- *
+ *
* @param config 鍙傛暟閰嶇疆淇℃伅
* @return 缁撴灉
*/
@@ -145,7 +145,7 @@
/**
* 淇敼鍙傛暟閰嶇疆
- *
+ *
* @param config 鍙傛暟閰嶇疆淇℃伅
* @return 缁撴灉
*/
@@ -168,7 +168,7 @@
/**
* 鎵归噺鍒犻櫎鍙傛暟淇℃伅
- *
+ *
* @param configIds 闇�瑕佸垹闄ょ殑鍙傛暟ID
*/
@Override
@@ -221,7 +221,7 @@
/**
* 鏍¢獙鍙傛暟閿悕鏄惁鍞竴
- *
+ *
* @param config 鍙傛暟閰嶇疆淇℃伅
* @return 缁撴灉
*/
@@ -239,7 +239,7 @@
/**
* 璁剧疆cache key
- *
+ *
* @param configKey 鍙傛暟閿�
* @return 缂撳瓨閿甼ey
*/
@@ -260,6 +260,17 @@
}
@Override
+ public String getSYVideo() {
+ List<SysConfig> result = configMapper.selectByType("threeOneVideo");
+ if(result.size() > 0){
+ String SYURL = result.get(0).getConfigValue();
+ return SYURL;
+ }else{
+ return "";
+ }
+ }
+
+ @Override
public String getHealth() {
List<SysConfig> result = configMapper.selectByType("health");
if(result.size() > 0){
--
Gitblit v1.9.3