From 17997282d93be87f59d70b1ae1fbc94d501c0fcc Mon Sep 17 00:00:00 2001 From: JIAL <2287346125@qq.com> Date: Thu, 14 Mar 2024 07:57:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/quote/QuoteController.java | 13 ++ .../com/ruoyi/quote/mapper/QuoteMapper.java | 2 + .../com/ruoyi/quote/service/QuoteService.java | 2 + .../quote/service/impl/QuoteServiceImpl.java | 12 ++ .../resources/mapper/quote/QuoteMapper.xml | 5 + ruoyi-ui/src/api/quote/quote.js | 7 + ruoyi-ui/src/views/quotePage/quote/index.vue | 203 ++++++++++++------ 7 files changed, 183 insertions(+), 61 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quote/QuoteController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quote/QuoteController.java index 4e76716..f1caaa4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quote/QuoteController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quote/QuoteController.java @@ -99,5 +99,18 @@ public class QuoteController extends BaseController { return success(quoteService.queryRedBookVer()); } + /** + * @title queryRedBookLocalVersion + * @description 获取本地红本版本号 + * @author JIAL + * @updateTime 2024/3/13 12:54 + * @return: com.ruoyi.common.core.domain.AjaxResult + */ + @DataSource(DataSourceType.QUOT) + @PostMapping("/redBookLocalVer") + public AjaxResult queryRedBookLocalVersion() { + return success(quoteService.queryRedBookLocalVer()); + } + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/quote/mapper/QuoteMapper.java b/ruoyi-system/src/main/java/com/ruoyi/quote/mapper/QuoteMapper.java index 9cda06d..2b65bc6 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/quote/mapper/QuoteMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/quote/mapper/QuoteMapper.java @@ -25,4 +25,6 @@ public interface QuoteMapper { List queryRedBPriceByParams(@Param("params") List params); String queryRedBookVer(); + + String queryRedBookLocalVer(); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/quote/service/QuoteService.java b/ruoyi-system/src/main/java/com/ruoyi/quote/service/QuoteService.java index 51b20ba..e2b3596 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/quote/service/QuoteService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/quote/service/QuoteService.java @@ -20,4 +20,6 @@ public interface QuoteService { List queryRedBPriceByParams(List params); String queryRedBookVer(); + + String queryRedBookLocalVer(); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/quote/service/impl/QuoteServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/quote/service/impl/QuoteServiceImpl.java index e68de19..c05553a 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/quote/service/impl/QuoteServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/quote/service/impl/QuoteServiceImpl.java @@ -75,4 +75,16 @@ public class QuoteServiceImpl implements QuoteService { public String queryRedBookVer() { return quoteMapper.queryRedBookVer(); } + + /** + * @title queryRedBookLocalVer + * @description 获取本地红本版本号 + * @author JIAL + * @updateTime 2024/3/13 12:37 + * @return: java.lang.String + */ + @Override + public String queryRedBookLocalVer() { + return quoteMapper.queryRedBookLocalVer(); + } } diff --git a/ruoyi-system/src/main/resources/mapper/quote/QuoteMapper.xml b/ruoyi-system/src/main/resources/mapper/quote/QuoteMapper.xml index 31d8dd5..f79bcf9 100644 --- a/ruoyi-system/src/main/resources/mapper/quote/QuoteMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/quote/QuoteMapper.xml @@ -109,4 +109,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" WHERE [sta_0] IN ('0', '1'); + + diff --git a/ruoyi-ui/src/api/quote/quote.js b/ruoyi-ui/src/api/quote/quote.js index c3adb04..720a93b 100644 --- a/ruoyi-ui/src/api/quote/quote.js +++ b/ruoyi-ui/src/api/quote/quote.js @@ -30,3 +30,10 @@ export function queryRedBookVer () { method: 'post', }) } + +export function queryRedBookLocalVer () { + return request({ + url: '/quote/redBookLocalVer', + method: 'post', + }) +} diff --git a/ruoyi-ui/src/views/quotePage/quote/index.vue b/ruoyi-ui/src/views/quotePage/quote/index.vue index 9090ce6..e15aec1 100644 --- a/ruoyi-ui/src/views/quotePage/quote/index.vue +++ b/ruoyi-ui/src/views/quotePage/quote/index.vue @@ -412,11 +412,11 @@ @@ -511,17 +511,55 @@ + + + + + + + + + + + + + + +