Pu Zhibing
2024-09-20 7c7354dc331ee0f94938fd27a69047d254e4bdf0
ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/util/CarUtil.java
@@ -2365,11 +2365,11 @@
                "]}";
        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());