#
Junjie
2024-10-17 d62c5c0eb2e28b7bf27d23de84a609b5a2e415e4
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/controller/MapController.java
@@ -1,9 +1,12 @@
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.web.bind.annotation.*;
@@ -17,6 +20,8 @@
    @Autowired
    private MapService mapService;
    @Autowired
    private RedisUtil redisUtil;
    //    @PreAuthorize("hasAuthority('core:map:list')")
    @PostMapping("/floor/list")
@@ -40,9 +45,14 @@
    // 货架 - 库位 --------------------------------------------------------
    @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.getShelfLocNoList(locNo));
        return R.ok().add(mapService.getShelfLocNoInfo(locNo));
    }
    // 穿梭车 --------------------------------------------------------
@@ -65,4 +75,11 @@
//        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();
    }
}