| | |
| | | vo.setPakMk(shuttleProtocol.getPakMk()?"Y" : "N"); // 作业标记 |
| | | vo.setLocNo(shuttleProtocol.getLocNo());//四向穿梭车当前库位号 |
| | | vo.setLev(Utils.getLev(shuttleProtocol.getLocNo()));//四向穿梭车当前层高 |
| | | vo.setRunSpeed(basShuttle.getRunSpeed());//四向穿梭车运行速度(设置) |
| | | vo.setChargeLine(basShuttle.getChargeLine());//充电阈值 |
| | | } |
| | | return R.ok().add(list); |
| | | } |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/runSpeed/{shuttleNo}") |
| | | @ManagerAuth |
| | | public R setRunSpeed(@PathVariable("shuttleNo") String shuttleNo, @RequestParam("runSpeed") Integer runSpeed, @RequestParam("chargeLine") Integer chargeLine) { |
| | | |
| | | BasShuttle basShuttle = basShuttleService.selectById(shuttleNo); |
| | | if (basShuttle == null) { |
| | | return R.error("四向穿梭车不存在"); |
| | | } |
| | | basShuttle.setRunSpeed(runSpeed); |
| | | basShuttle.setChargeLine(chargeLine); |
| | | if (!basShuttleService.updateById(basShuttle)) { |
| | | return R.error(); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | /****************************************************************/ |
| | | /************************** 手动操作 ******************************/ |
| | | /****************************************************************/ |