yantian yue
2023-10-20 6b317a19dd1c584538f3810fe66587a1aa86dbb4
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);
    }
}