| | |
| | | wrkMast.setWrkSts(52L); // 工作状态42->52.设备上走(拆垛完成) |
| | | wrkMast.setSourceStaNo(param.getSourceStaNo()); |
| | | wrkMast.setStaNo(oneFloorIn[wrkMast.getCrnNo()]); |
| | | // 源库位 |
| | | LocMast staLocMast = locMastService.selectById(wrkMast.getSourceLocNo()); |
| | | // 目标库位=源库位 |
| | | wrkMast.setLocNo(wrkMast.getSourceLocNo()); |
| | | // 源库位清除 |
| | | wrkMast.setSourceLocNo(""); |
| | | wrkMast.setModiTime(new Date()); |
| | | |
| | | // 更新库位状态 |
| | | LocMast staLocMast = locMastService.selectById(wrkMast.getSourceLocNo()); |
| | | // 更新新库位状态 Q |
| | | staLocMast.setLocSts("Q"); |
| | | staLocMast.setModiTime(new Date()); |
| | |
| | | try { |
| | | response = new HttpHandler.Builder() |
| | | .setUri(MesConstant.GWCS_IP_PORT) |
| | | .setPath(MesConstant.GWCS_IP_PORT) |
| | | .setPath(MesConstant.GWCS_FPKW_URL) |
| | | .setHeaders(headers) |
| | | .setJson(body) |
| | | .build() |
| | |
| | | if (!Cools.isEmpty(response)) { |
| | | success = true; |
| | | } else { |
| | | log.error(message + "失败!!!url:{};request:{};response:{}", MesConstant.GWCS_IP_PORT + MesConstant.GWCS_IP_PORT, body, response); |
| | | log.error(message + "失败!!!url:{};request:{};response:{}", MesConstant.GWCS_IP_PORT + MesConstant.GWCS_FPKW_URL, body, response); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error(message + "异常:{}", e); |