| | |
| | | response = new HttpHandler.Builder() |
| | | .setUri(URL) |
| | | .setPath(QuantityOfPalletizing) |
| | | .setJson(JSON.toJSONString(armPrecomputeParam)) |
| | | .setJson(JSON.toJSONString(armPrecomputeParam.getMatList().get(0))) |
| | | .build() |
| | | .doPost(); |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | if (jsonObject.getInteger("code").equals(200)) { |
| | | JSONObject data = JSON.parseObject(jsonObject.getString("data")); |
| | | |
| | | success = true; |
| | | ArmPrecomputeParam jsonObjectObject = jsonObject.getObject("data", ArmPrecomputeParam.class); |
| | | ArmPrecomputeParam jsonObjectObject = new ArmPrecomputeParam( |
| | | data.getDouble("material_length"), |
| | | data.getDouble("material_width"), |
| | | data.getDouble("material_height"), |
| | | data.getDouble("material_weight"), |
| | | data.getDouble("material_number") |
| | | ); |
| | | for (ArmPrecomputeParam.CombMat combMat : jsonObjectObject.getMatList()){ |
| | | basArmRulesService.updateStatus(combMat); |
| | | } |