| | |
| | | public int containerArrived(AgvWrkMast agvWrkMast) { |
| | | |
| | | Map<String,String> containerArrivedParam = new HashMap<>(); |
| | | String slotCode = agvWrkMast.getSourceLocNo().substring(3, 6) + "-1"; |
| | | containerArrivedParam.put("slotCode",slotCode); |
| | | containerArrivedParam.put("slotCode",agvWrkMast.getSourceLocNo()); |
| | | containerArrivedParam.put("containerCode",agvWrkMast.getBarcode()); |
| | | |
| | | return doHttpRequest(containerArrivedParam,"容器达到通知",url, containerArrivedPath,null,"127.0.0.1"); |
| | |
| | | agvTaskParam.setTaskPriority(agvWrkMast.getIoPri().intValue()); |
| | | |
| | | //AgvTaskkDescribeParam |
| | | if(agvWrkMast.getSourceLocNo().contains("C")){ |
| | | agvTaskkDescribeParam.setFromLocationCode(agvWrkMast.getSourceLocNo()); |
| | | } |
| | | agvTaskkDescribeParam.setFromLocationCode(agvWrkMast.getSourceLocNo()); |
| | | agvTaskkDescribeParam.setToLocationCode(agvWrkMast.getLocNo()); |
| | | agvTaskkDescribeParam.setContainerCode(agvWrkMast.getBarcode()); |
| | |
| | | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String locationCode = "301-1"; |
| | | if(locationCode.contains("C")){ |
| | | System.out.println(true); |
| | | }else { |
| | | System.out.println(false); |
| | | } |
| | | } |
| | | |
| | | } |