| | |
| | | String cwarehouseid = entry.getKey(); |
| | | List<InventoryCheckOrderDetl> list = entry.getValue(); |
| | | Object process1 = processInvcount(list, cwarehouseid); |
| | | //发送请求 |
| | | NcResultMessage response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, invcountAdd, JSONObject.toJSONString(process1)); |
| | | log.info("盘点单response:{}", response); |
| | | if (!Cools.isEmpty(response) && response.isSuccess()) { |
| | | NcResultMessage response = null; |
| | | boolean success = false; |
| | | try { |
| | | //发送请求 |
| | | response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, invcountAdd, JSONObject.toJSONString(process1)); |
| | | log.info("盘点单response:{}", response); |
| | | } else { |
| | | result = false; |
| | | if (!Cools.isEmpty(response) && response.isSuccess()) { |
| | | log.info("盘点单response:{}", response); |
| | | success = true; |
| | | } else { |
| | | result = false; |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } finally { |
| | | reportApiLog(null, process1, null, response, "盘点上报", nyncIp, invcountAdd, success); |
| | | } |
| | | } |
| | | |