From 8069b5176a358fd4c730e34a4f30a781f1241c23 Mon Sep 17 00:00:00 2001
From: hdy <1105738590@qq.com>
Date: 星期一, 08 七月 2024 16:00:30 +0800
Subject: [PATCH] cvt更新

---
 jcdm-main/src/main/java/com/jcdm/main/da/opcuaconfig/controller/DaOpcuaConfigController.java |   55 ++++++++++++++++++++++++-------------------------------
 1 files changed, 24 insertions(+), 31 deletions(-)

diff --git a/jcdm-main/src/main/java/com/jcdm/main/da/opcuaconfig/controller/DaOpcuaConfigController.java b/jcdm-main/src/main/java/com/jcdm/main/da/opcuaconfig/controller/DaOpcuaConfigController.java
index fc65d8f..41a90a9 100644
--- a/jcdm-main/src/main/java/com/jcdm/main/da/opcuaconfig/controller/DaOpcuaConfigController.java
+++ b/jcdm-main/src/main/java/com/jcdm/main/da/opcuaconfig/controller/DaOpcuaConfigController.java
@@ -3,7 +3,7 @@
 import java.util.List;
 import javax.servlet.http.HttpServletResponse;
 
-import com.jcdm.main.da.opcuaconfig.client.ClientHandler;
+//import com.jcdm.main.da.opcuaconfig.client.ClientHandler;
 import com.jcdm.main.da.opcuaconfig.domain.DaOpcuaConfig;
 import com.jcdm.main.da.opcuaconfig.domain.NodeEntity;
 import com.jcdm.main.da.opcuaconfig.service.IDaOpcuaConfigService;
@@ -32,8 +32,7 @@
  */
 @RestController
 @RequestMapping("/da/opcuaconfig")
-public class DaOpcuaConfigController extends BaseController
-{
+public class DaOpcuaConfigController extends BaseController {
     @Autowired
     private IDaOpcuaConfigService daOpcuaConfigService;
 
@@ -42,8 +41,7 @@
      */
     @PreAuthorize("@ss.hasPermi('da:opcuaconfig:list')")
     @GetMapping("/list")
-    public TableDataInfo list(DaOpcuaConfig daOpcuaConfig)
-    {
+    public TableDataInfo list(DaOpcuaConfig daOpcuaConfig) {
         startPage();
         List<DaOpcuaConfig> list = daOpcuaConfigService.selectDaOpcuaConfigList(daOpcuaConfig);
         return getDataTable(list);
@@ -55,8 +53,7 @@
     @PreAuthorize("@ss.hasPermi('da:opcuaconfig:export')")
     @Log(title = "浜や簰淇″彿閰嶇疆", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
-    public void export(HttpServletResponse response, DaOpcuaConfig daOpcuaConfig)
-    {
+    public void export(HttpServletResponse response, DaOpcuaConfig daOpcuaConfig) {
         List<DaOpcuaConfig> list = daOpcuaConfigService.selectDaOpcuaConfigList(daOpcuaConfig);
         ExcelUtil<DaOpcuaConfig> util = new ExcelUtil<DaOpcuaConfig>(DaOpcuaConfig.class);
         util.exportExcel(response, list, "浜や簰淇″彿閰嶇疆鏁版嵁");
@@ -67,8 +64,7 @@
      */
     @PreAuthorize("@ss.hasPermi('da:opcuaconfig:query')")
     @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
         return success(daOpcuaConfigService.selectDaOpcuaConfigById(id));
     }
 
@@ -78,8 +74,7 @@
     @PreAuthorize("@ss.hasPermi('da:opcuaconfig:add')")
     @Log(title = "浜や簰淇″彿閰嶇疆", businessType = BusinessType.INSERT)
     @PostMapping
-    public AjaxResult add(@RequestBody DaOpcuaConfig daOpcuaConfig)
-    {
+    public AjaxResult add(@RequestBody DaOpcuaConfig daOpcuaConfig) {
         return toAjax(daOpcuaConfigService.insertDaOpcuaConfig(daOpcuaConfig));
     }
 
@@ -89,8 +84,7 @@
     @PreAuthorize("@ss.hasPermi('da:opcuaconfig:edit')")
     @Log(title = "浜や簰淇″彿閰嶇疆", businessType = BusinessType.UPDATE)
     @PutMapping
-    public AjaxResult edit(@RequestBody DaOpcuaConfig daOpcuaConfig)
-    {
+    public AjaxResult edit(@RequestBody DaOpcuaConfig daOpcuaConfig) {
         return toAjax(daOpcuaConfigService.updateDaOpcuaConfig(daOpcuaConfig));
     }
 
@@ -99,26 +93,25 @@
      */
     @PreAuthorize("@ss.hasPermi('da:opcuaconfig:remove')")
     @Log(title = "浜や簰淇″彿閰嶇疆", businessType = BusinessType.DELETE)
-	@DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable Long[] ids)
-    {
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
         return toAjax(daOpcuaConfigService.deleteDaOpcuaConfigByIds(ids));
     }
-
+}
     /**
      * 鑾峰彇浜や簰淇″彿閰嶇疆璇︾粏淇℃伅
      */
-    @PreAuthorize("@ss.hasPermi('da:opcuaconfig:query')")
-    @GetMapping(value = "/SNCode/{SNCode}/{locationCode}")
-    public AjaxResult setSNCode(@PathVariable("SNCode") String SNCode,@PathVariable("locationCode") String locationCode) {
-        NodeEntity node= NodeEntity.builder().index(2).identifier("CFL4CVT"+"."+locationCode+".MesSNCode").value(SNCode).type("string").build();
-        Boolean out= null;
-        try {
-            out = ClientHandler.write(node);
-        } catch (Exception e) {
-            throw new RuntimeException(e);
-        }
-
-        return toAjax(out);
-    }
-}
+//    @PreAuthorize("@ss.hasPermi('da:opcuaconfig:query')")
+//    @GetMapping(value = "/SNCode/{SNCode}/{locationCode}")
+//    public AjaxResult setSNCode(@PathVariable("SNCode") String SNCode,@PathVariable("locationCode") String locationCode) {
+//        NodeEntity node= NodeEntity.builder().index(2).identifier("CFL4CVT"+"."+locationCode+".MesSNCode").value(SNCode).type("string").build();
+//        Boolean out= null;
+//        try {
+//            out = ClientHandler.write(node);
+//        } catch (Exception e) {
+//            throw new RuntimeException(e);
+//        }
+//
+//        return toAjax(out);
+//    }
+//}

--
Gitblit v1.9.3