From ee4d94defe7cc7f36f87aebf2e9efed38ba93a40 Mon Sep 17 00:00:00 2001
From: 懒羊羊 <15939171744@163.com>
Date: 星期二, 14 十一月 2023 16:44:18 +0800
Subject: [PATCH] 优化

---
 guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/controller/OpcuaConfController.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/controller/OpcuaConfController.java b/guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/controller/OpcuaConfController.java
index a9d154d..488d967 100644
--- a/guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/controller/OpcuaConfController.java
+++ b/guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/controller/OpcuaConfController.java
@@ -3,6 +3,7 @@
 import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
 import cn.stylefeng.guns.opcua.entity.OpcuaConf;
 import cn.stylefeng.guns.opcua.model.params.OpcuaConfParam;
+import cn.stylefeng.guns.opcua.model.result.OpcuaConfResult;
 import cn.stylefeng.guns.opcua.service.OpcuaConfService;
 import cn.stylefeng.roses.core.base.controller.BaseController;
 import cn.stylefeng.roses.kernel.model.response.ResponseData;
@@ -12,6 +13,7 @@
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.ResponseBody;
 
+import java.util.List;
 
 
 /**
@@ -131,6 +133,12 @@
     public LayuiPageInfo list(OpcuaConfParam opcuaConfParam) {
         return this.opcuaConfService.findPageBySpec(opcuaConfParam);
     }
+    @ResponseBody
+    @RequestMapping("/mylist")
+    @DataSource(name = "self")
+    public List<OpcuaConfResult> mylist(OpcuaConfParam opcuaConfParam) {
+        return this.opcuaConfService.findListBySpec(opcuaConfParam);
+    }
 
 }
 

--
Gitblit v1.9.3