| | |
| | | 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.*; |
| | |
| | | |
| | | @Autowired |
| | | private MapService mapService; |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | |
| | | // @PreAuthorize("hasAuthority('core:map:list')") |
| | | @PostMapping("/floor/list") |
| | |
| | | |
| | | |
| | | // 货架 - 库位 -------------------------------------------------------- |
| | | @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)); |
| | | } |
| | | |
| | | // 穿梭车 -------------------------------------------------------- |
| | | @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)); |
| | | } |
| | | |
| | | |
| | | |
| | | // 输送线 - 库位 -------------------------------------------------------- |
| | |
| | | // 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(); |
| | | } |
| | | |
| | | } |