| | |
| | | */ |
| | | public int applyInStation(TransParent apply) { |
| | | |
| | | String url = MES_URL + (apply.getProductLineId().equals("LL") || apply.getProductLineId().equals("LJ") ? "AGVTransportPalletNotice" : "Aprs/AGVTransportPalletNotice"); |
| | | String path; |
| | | if ("LL".equals(apply.getProductLineId())) { |
| | | path = "AGVTransportPalletNotice"; |
| | | } else if ("LJ".equals(apply.getProductLineId())) { |
| | | path = "SliderAGVTransportPalletNotice"; |
| | | } else { |
| | | path = "Aprs/AGVTransportPalletNotice"; |
| | | } |
| | | String url = MES_URL + path; |
| | | |
| | | // String url = MES_URL + (apply.getProductLineId().equals("LL") || apply.getProductLineId().equals("LJ") ? "AGVTransportPalletNotice" : "Aprs/AGVTransportPalletNotice"); |
| | | String response = RcsServiceImpl.sendPost(url, JSONObject.toJSONString(apply)); |
| | | if (!StringUtils.isEmpty(response) && response.contains("Success")){ |
| | | MesReturn mesReturn = JSONObject.parseObject(response, MesReturn.class); |
| | |
| | | * @return |
| | | */ |
| | | public int outStation(TransParent apply) { |
| | | String path; |
| | | if ("LL".equals(apply.getProductLineId())) { |
| | | path = "AGVTransportPalletNotice"; |
| | | } else if ("LJ".equals(apply.getProductLineId())) { |
| | | path = "SliderAGVTransportPalletNotice"; |
| | | } else { |
| | | path = "Aprs/AGVTransportPalletNotice"; |
| | | } |
| | | String url = MES_URL + path; |
| | | |
| | | String url = MES_URL + (apply.getProductLineId().equals("LL") || apply.getProductLineId().equals("LJ") ? "AGVDepartureCompleted" : "Aprs/AGVDepartureCompleted"); |
| | | // String url = MES_URL + (apply.getProductLineId().equals("LL") || apply.getProductLineId().equals("LJ") ? "AGVDepartureCompleted" : "Aprs/AGVDepartureCompleted"); |
| | | String response = RcsServiceImpl.sendPost(url, JSONObject.toJSONString(apply)); |
| | | if (!StringUtils.isEmpty(response) && response.contains("Success")){ |
| | | MesReturn mesReturn = JSONObject.parseObject(response, MesReturn.class); |