| | |
| | | return R.error("plc已掉线"); |
| | | } |
| | | |
| | | @PostMapping("/startScan") |
| | | @ManagerAuth(memo = "触发扫码",value = ManagerAuth.Auth.NONE) |
| | | public R startScan(@RequestParam Integer siteId){ |
| | | SiemensDevpThread siemensDevpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | StaProtocol staProtocol = siemensDevpThread.getStation().get(siteId).clone(); |
| | | boolean offer = MessageQueue.offer(SlaveType.Devp, 1, new Task(3, staProtocol)); |
| | | if (!offer) { |
| | | return R.parse("触发扫码命令下发失败"); |
| | | } |
| | | |
| | | return R.ok("触发扫码下发成功"); |
| | | } |
| | | |
| | | @PostMapping("/detl/update") |
| | | @ManagerAuth(memo = "修改站点数据") |
| | | @ManagerAuth(memo = "修改站点数据",value = ManagerAuth.Auth.NONE) |
| | | public R siteDetlUpdate(@RequestParam Integer siteId, |
| | | @RequestParam Integer workNo, |
| | | @RequestParam Short staNo, |