|  |  |  | 
|---|
|  |  |  | throw new CoolException("更新plc站点信息失败"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | SearchLocParam param2 = new SearchLocParam(); | 
|---|
|  |  |  | param2.setBarcode(barcode); | 
|---|
|  |  |  | param2.setSourceStaNo(inSta.getStaNo()); | 
|---|
|  |  |  | param2.setLocType1(locTypeDto.getLocType1()); | 
|---|
|  |  |  | String response2 = new HttpHandler.Builder() | 
|---|
|  |  |  | .setUri(wmsUrl) | 
|---|
|  |  |  | .setPath("/rpc/pakin/yx/loc/v33") | 
|---|
|  |  |  | .setJson(JSON.toJSONString(param2)) | 
|---|
|  |  |  | .build() | 
|---|
|  |  |  | .doPost(); | 
|---|
|  |  |  | JSONObject jsonObject2 = JSON.parseObject(response2); | 
|---|
|  |  |  | if (jsonObject2.getInteger("code").equals(200)) { | 
|---|
|  |  |  | log.info("大料箱自动组托成功!!"); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | log.error("请求接口失败!!!url:{};request:{};response:{}", wmsUrl + "/rpc/pakin/loc/v1", JSON.toJSONString(param), response); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LedThread ledThread = (LedThread) SlaveConnection.get(SlaveType.Led, inSta.getLed()); | 
|---|
|  |  |  | 
|---|
|  |  |  | MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(5, "入库失败!")); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | e.printStackTrace(); | 
|---|