自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-04-22 0874ababb94bfb41a3bf7826572a60b84e0fd943
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -291,7 +291,7 @@
                }
                String response;
                try {
                    response  = new HttpHandler.Builder()
                    response = new HttpHandler.Builder()
                            .setUri(MesConstant.URL)
                            .setPath(MesConstant.PACK_DOWN_URL)
                            .setJson(JSON.toJSONString(mesCombParam))
@@ -300,15 +300,16 @@
                    JSONObject jsonObject = JSON.parseObject(response);
                    if (jsonObject.getInteger("code").equals(200)) {
                        log.info("请求接口成功!!!");
//                        log.info("请求接口成功!!!url:{};request:{};response:{}", MesConstant.URL+MesConstant.PACK_DOWN_URL, JSON.toJSONString(mesCombParam), response);
                    } else if (jsonObject.getInteger("code").equals(500)) {
                        log.error("请求接口失败!!!url:{};request:{};response:{}", MesConstant.URL+MesConstant.PACK_DOWN_URL, JSON.toJSONString(mesCombParam), response);
                        throw new CoolException(jsonObject.getString("msg"));
                    } else {
                        log.error("请求接口失败!!!url:{};request:{};response:{}", MesConstant.URL+MesConstant.PACK_DOWN_URL, JSON.toJSONString(mesCombParam), response);
                        throw new CoolException("上报mes系统失败");
                    }
                } catch (Exception e) {
                    log.error("fail", e);
                    e.printStackTrace();
                    throw new CoolException("上报mes系统失败");
                    throw new CoolException(e.getMessage());
                }
            }