From cab87dcfaa7b1e2bc1298572b775026bb17ef38b Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期四, 17 十月 2024 13:54:41 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/controller/MapController.java |   51 +++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 45 insertions(+), 6 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/controller/MapController.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/controller/MapController.java
index 8f6e0de..670c8c5 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/controller/MapController.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/controller/MapController.java
@@ -1,16 +1,15 @@
 package com.zy.asrs.wcs.core.map.controller;
 
+import com.alibaba.fastjson.JSON;
 import com.zy.asrs.framework.common.R;
 import com.zy.asrs.wcs.core.map.controller.param.MapDataParam;
 import com.zy.asrs.wcs.core.map.controller.param.MapQueryParam;
 import com.zy.asrs.wcs.core.map.service.MapService;
+import com.zy.asrs.wcs.core.utils.RedisUtil;
+import com.zy.asrs.wcs.rcs.constant.DeviceRedisConstant;
 import com.zy.asrs.wcs.system.controller.BaseController;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.transaction.annotation.Transactional;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 /**
  * Created by vincent on 3/15/2024
@@ -21,6 +20,8 @@
 
     @Autowired
     private MapService mapService;
+    @Autowired
+    private RedisUtil redisUtil;
 
     //    @PreAuthorize("hasAuthority('core:map:list')")
     @PostMapping("/floor/list")
@@ -37,10 +38,48 @@
 
 //    @PreAuthorize("hasAuthority('core:map:save')")
     @PostMapping("/save")
-    @Transactional
     public R mapSave(@RequestBody MapDataParam param) {
         mapService.saveMapData(param, getLoginUserId());
         return R.ok();
     }
 
+
+    // 璐ф灦 - 搴撲綅 --------------------------------------------------------
+    @GetMapping("/shelf/group")
+    public R shelfGroup(@RequestParam String locNo) {
+        return R.ok().add(mapService.getShelfLocNoGroup(locNo));
+    }
+
+    @GetMapping("/shelf/info")
+    public R shelfInfo(@RequestParam String locNo) {
+        return R.ok().add(mapService.getShelfLocNoInfo(locNo));
+    }
+
+    // 绌挎杞� --------------------------------------------------------
+    @GetMapping("/shuttle/info")
+    public R shuttleInfo(@RequestParam String shuttleNo) {
+        return R.ok().add(mapService.getShuttleInfo(shuttleNo));
+    }
+
+    // 鎻愬崌鏈� --------------------------------------------------------
+    @GetMapping("/lift/info")
+    public R liftInfo(@RequestParam String liftNo) {
+        return R.ok().add(mapService.getLiftInfo(liftNo));
+    }
+
+
+
+    // 杈撻�佺嚎 - 搴撲綅 --------------------------------------------------------
+//    @GetMapping("/conveyor/plc/list")
+//    public R conveyorPlcList() {
+//        return R.ok().add(mapService.getShelfLocNoList(locNo));
+//    }
+
+    @GetMapping("/clearLockPath")
+    public R clearLockPath(@RequestParam Integer lev) {
+        redisUtil.del(DeviceRedisConstant.MAP + lev);
+        redisUtil.del(DeviceRedisConstant.LOCK_PATH + lev);
+        return R.ok();
+    }
+
 }

--
Gitblit v1.9.1