From fddaa652e0f13bae62295b9859aabdf295b849bf Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Mon, 20 Oct 2025 08:58:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(portal):=20=E6=96=B0=E5=A2=9E=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=8D=95=E4=B8=AA=E5=AE=98=E7=BD=91=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在HwWebMapper1中添加selectHwWebOne方法定义 - 在HwWebMapper1.xml中实现对应的SQL查询逻辑- 在IHwWebService1接口中声明selectHwWebOne服务方法 - 在HwWebServiceImpl1中实现selectHwWebOne业务逻辑 - 查询条件包括web_code、device_id和typeId三个参数 --- .../main/java/com/ruoyi/portal/mapper/HwWebMapper1.java | 8 ++++++++ .../java/com/ruoyi/portal/service/IHwWebService1.java | 2 ++ .../com/ruoyi/portal/service/impl/HwWebServiceImpl1.java | 6 ++++++ .../src/main/resources/mapper/portal/HwWebMapper1.xml | 7 +++++++ 4 files changed, 23 insertions(+) diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwWebMapper1.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwWebMapper1.java index cf48bc9..0f90b96 100644 --- a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwWebMapper1.java +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwWebMapper1.java @@ -20,6 +20,14 @@ public interface HwWebMapper1 */ public HwWeb1 selectHwWebByWebcode(Long webCode); + /** + * 查询haiwei官网json列表 + * + * @param HwWeb1 haiwei官网json + * @return haiwei官网json集合 + */ + public HwWeb1 selectHwWebOne(HwWeb1 hwWeb1); + /** * 查询haiwei官网json列表 * diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwWebService1.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwWebService1.java index 076d0ee..3cddc2a 100644 --- a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwWebService1.java +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwWebService1.java @@ -19,6 +19,8 @@ public interface IHwWebService1 */ public HwWeb1 selectHwWebByWebcode(Long webCode); + public HwWeb1 selectHwWebOne(HwWeb1 hwWeb1); + /** * 查询haiwei官网json列表 * diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl1.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl1.java index 61143d6..f1dc951 100644 --- a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl1.java +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwWebServiceImpl1.java @@ -34,6 +34,12 @@ public class HwWebServiceImpl1 implements IHwWebService1 return hwWebMapper1.selectHwWebByWebcode(webCode); } + @Override + public HwWeb1 selectHwWebOne(HwWeb1 hwWeb1) + { + return hwWebMapper1.selectHwWebOne(hwWeb1); + } + /** * 查询haiwei官网json列表 diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebMapper1.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebMapper1.xml index f4c5020..ee172b0 100644 --- a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebMapper1.xml +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwWebMapper1.xml @@ -36,6 +36,13 @@ where web_code = #{webCode} + + insert into hw_web1