| | |
| | | import com.zy.asrs.utils.RouteUtils; |
| | | import com.zy.asrs.utils.Utils; |
| | | import com.zy.asrs.utils.VersionUtils; |
| | | import com.zy.common.constant.GhjtApiConstant; |
| | | import com.zy.common.model.LocTypeDto; |
| | | import com.zy.common.model.MatDto; |
| | | import com.zy.common.model.SearchLocParam; |
| | |
| | | */ |
| | | private boolean crnEnabled(WrkMast wrkMast) { |
| | | |
| | | String url = "http://192.168.14.249:8008"; |
| | | String path = "/api/Task/DockStatus"; |
| | | |
| | | // 获取请求头 |
| | | Map<String,Object> headers = new HashMap<>(); |
| | | headers.put("digi-type","sync "); |
| | |
| | | String response; |
| | | try { |
| | | response = new HttpHandler.Builder() |
| | | .setUri(url) |
| | | .setPath(path) |
| | | .setUri(GhjtApiConstant.GWCS_IP_PORT) |
| | | .setPath(GhjtApiConstant.GWCS_CKMT_URL) |
| | | .setHeaders(headers) |
| | | .setJson(body) |
| | | .build() |
| | |
| | | success = false; |
| | | } |
| | | } else { |
| | | log.error("请求接口失败!!!url:{};request:{};response:{}", url + path, body, response); |
| | | throw new CoolException("下发出库任务给GWCS(从出库码头到出库口)失败"); |
| | | log.error("确认出库码头是否可用失败!!!url:{};request:{};response:{}", GhjtApiConstant.GWCS_IP_PORT + GhjtApiConstant.GWCS_CKMT_URL, body, response); |
| | | throw new CoolException("确认出库码头是否可用失败"); |
| | | } |
| | | } catch (Exception e) { |
| | | success = false; |