| | |
| | | Boolean bool =false; |
| | | |
| | | try { |
| | | log.info("wms派发搬运任务给RCS出库={}", rcsParam); |
| | | log.info("wms派发搬运任务给AGV搬运={}", rcsParam); |
| | | response = new HttpHandler.Builder() |
| | | // .setHeaders(headParam) |
| | | .setUri(url) |
| | |
| | | .doPost(); |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | if(jsonObject.getBoolean("IsSuccess")){ |
| | | wrkMast.setWrkSts(31L);//WMS下发搬运任务给RCS成功 |
| | | wrkMast.setWrkSts(15L);//WMS下发搬运任务给RCS成功,转历史档 |
| | | wrkMastService.updateById(wrkMast); |
| | | bool = true; |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("wcs派发任务给RCS出库失败{},返回值={}", wrkMast, response); |
| | | log.error("wms派发搬运任务给AGV搬运失败{},返回值={}", wrkMast, response); |
| | | } finally { |
| | | apiLogService.save("WMS派发搬运任务给RCS" |
| | | apiLogService.save("wms派发搬运任务给AGV搬运" |
| | | , url + attrcs |
| | | , null |
| | | , "127.0.0.1" |