| | |
| | | "]}"; |
| | | String hp = num.substring(0, 2);// |
| | | JSONObject jsonObject = JSONObject.parseObject(jsonStr); |
| | | JSONArray data = jsonObject.getJSONArray("data"); |
| | | JSONArray data = jsonObject.getJSONArray("date"); |
| | | List<CarNumDto> carNumDtos = JSONObject.parseArray(data.toJSONString(), CarNumDto.class); |
| | | CarNumDto carNumDto = new CarNumDto(); |
| | | for (CarNumDto carNumDtoTemp : carNumDtos) { |
| | | if (StringUtils.equals(carNumDto.getCode(), hp)) { |
| | | if (carNumDtoTemp.getCode().equals(hp)) { |
| | | carNumDto.setCity(carNumDtoTemp.getCity()); |
| | | carNumDto.setCode(carNumDtoTemp.getCode()); |
| | | carNumDto.setProvince(carNumDtoTemp.getProvince()); |