From 6b317a19dd1c584538f3810fe66587a1aa86dbb4 Mon Sep 17 00:00:00 2001 From: yantian yue <306727702@qq.com> Date: 星期五, 20 十月 2023 16:05:17 +0800 Subject: [PATCH] OPCUA更新 --- 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