| | |
| | | return mesService.outBoundOrder(param); |
| | | } |
| | | |
| | | // // 出库申请(叫料),装配库、滑块库 |
| | | // @PostMapping("/api/mes/callOutBoundOrder") |
| | | // public MesReturn callOutBoundOrder(@RequestBody MesCallOutApply param){ |
| | | // |
| | | // MesReturn mesReturn = new MesReturn(); |
| | | // mesReturn.setSuccess(mesService.callOutBoundOrder(param) == 1 ? "1" : "2"); |
| | | // return mesReturn; |
| | | // } |
| | | |
| | | // 入库申请 |
| | | @PostMapping("/api/mes/inBoundOrder") |
| | | public MesReturn inBoundOrder(@RequestBody MesInApply param){ |
| | | |
| | | MesReturn mesReturn = new MesReturn(); |
| | | mesReturn.setSuccess(mesService.inBoundOrder(param, 0) == 1 ? "1" : "2"); |
| | | return mesReturn; |
| | | } |
| | | |
| | | @PostMapping("/api/mes/allowInStation") |
| | | @AppAuth(memo = "入站允许") |
| | | public MesReturn allowInStation(@RequestHeader(required = false) String appkey,@RequestBody TransInOutStationAllow param,HttpServletRequest request){ |
| | | auth(appkey, param, request); |
| | | return mesService.allowInStation(param); |
| | | } |
| | | |
| | | // 离站允许,装配库、滑块库 |
| | | @PostMapping("/api/mes/allowOutStation") |
| | | public MesReturn allowOutStation(@RequestBody TransInOutStationAllow param){ |
| | | |
| | | return mesService.allowOutStation(param); |
| | | } |
| | | |
| | | @Resource |
| | | private BasStationService basStationService; |
| | |
| | | // 终点为空,计算接驳位 |
| | | BasStation basStation = null; |
| | | if (Cools.isEmpty(param.getNextStationId())) { |
| | | List<BasStation> basStations = basStationService.selectList(new EntityWrapper<BasStation>().eq("loc_sts", "O")); |
| | | int productionLine = param.getCurStationId().startsWith("LL") ? 1 : 2; |
| | | List<BasStation> basStations = basStationService.selectList(new EntityWrapper<BasStation>().eq("loc_sts", "O").eq("area_id",productionLine)); |
| | | if(basStations.isEmpty()) { |
| | | JSONObject result = new JSONObject(); |
| | | result.put("taskno", param.getTaskno()); |
| | |
| | | return sendAgvTask; |
| | | } |
| | | |
| | | // // 出库申请(叫料),装配库、滑块库 |
| | | // @PostMapping("/api/mes/callOutBoundOrder") |
| | | // public MesReturn callOutBoundOrder(@RequestBody MesCallOutApply param){ |
| | | // |
| | | // MesReturn mesReturn = new MesReturn(); |
| | | // mesReturn.setSuccess(mesService.callOutBoundOrder(param) == 1 ? "1" : "2"); |
| | | // return mesReturn; |
| | | // } |
| | | |
| | | // 入库申请 |
| | | @PostMapping("/api/mes/inBoundOrder") |
| | | public MesReturn inBoundOrder(@RequestBody MesInApply param){ |
| | | |
| | | MesReturn mesReturn = new MesReturn(); |
| | | mesReturn.setSuccess(mesService.inBoundOrder(param, 0) == 1 ? "1" : "2"); |
| | | return mesReturn; |
| | | } |
| | | |
| | | @PostMapping("/api/mes/allowInStation") |
| | | @AppAuth(memo = "入站允许") |
| | | public MesReturn allowInStation(@RequestHeader(required = false) String appkey,@RequestBody TransInOutStationAllow param,HttpServletRequest request){ |
| | | auth(appkey, param, request); |
| | | return mesService.allowInStation(param); |
| | | } |
| | | |
| | | // 离站允许,装配库、滑块库 |
| | | @PostMapping("/api/mes/allowOutStation") |
| | | public MesReturn allowOutStation(@RequestBody TransInOutStationAllow param){ |
| | | |
| | | return mesService.allowOutStation(param); |
| | | } |
| | | |
| | | // 接受成品刀可以入库二维码 |
| | | @PostMapping("/api/mes/inBoundItemBarcode") |
| | | public MesReturn inBoundItemBarcode(@RequestBody MesItemBarCode param){ |