package com.project.zcustom.tools; import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.project.common.utils.StringUtils; import com.project.common.utils.http.HttpUtils; import com.project.zcustom.domain.addional.LargeCar; import com.project.zcustom.domain.addional.LargeCarDetail; import com.project.zcustom.domain.addional.LargeCarRank; import com.project.zcustom.domain.addional.LargeWarnDetail; import com.project.zcustom.domain.basics.PlatAppOrg; import com.project.zcustom.domain.plat.PlatApiRecord; import com.project.zcustom.mapper.car.PlatCarMapper; import com.project.zcustom.service.plat.IPlatApiRecordService; import com.project.zcustom.service.service.basics.IPlatAppOrgService; import com.project.zcustom.service.unit.ILargeCarDetailService; import com.project.zcustom.service.unit.ILargeCarRankService; import com.project.zcustom.service.unit.ILargePublicCarService; import com.project.zcustom.service.unit.ILargeWarnDetailService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.List; import java.util.Map; import java.util.stream.Collectors; @Service public class CarService { @Resource IPlatApiRecordService iPlatApiRecordService; @Autowired private ILargePublicCarService largePlatPublicCarService; @Autowired private ILargeCarDetailService largeCarDetailService; @Autowired private ILargeWarnDetailService largeWarnDetailService; @Autowired private ILargeCarRankService largeCarRankService; @Autowired private IPlatAppOrgService platAppOrgService; @Autowired private PlatCarMapper platCarMapper; /** * 公务用车 */ public void getPublicCarData(){ LocalDate currentDate = LocalDate.now(); int year = currentDate.getYear(); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMM"); String formattedDate = currentDate.format(formatter); List orgList = platAppOrgService.selectAppCodeList(); Map orgMap = orgList.stream().collect(Collectors.toMap(PlatAppOrg::getAppEncode, PlatAppOrg::getAppParentOrg, (v1, v2) -> v1)); // TODO // entryA(JSON.parseArray(repeat(ApiUrlConfig.getJsonEstablishment(), "yearMonth=" + formattedDate), LargeCar.class), orgMap); // entryA(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarChange(), "year=" + year), LargeCar.class), orgMap); // entryA(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarType(), "year=" + year), LargeCar.class), orgMap); // entryA(JSON.parseArray(repeat(ApiUrlConfig.getJsonEnterpriseCar(), "year=" + year), LargeCar.class), orgMap); // entryA(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarPowerType(), "year=" + year), LargeCar.class), orgMap); // entryA(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarOrderAndMileage(), "yearMonth=" + formattedDate), LargeCar.class), orgMap); // entryA(JSON.parseArray(repeat(ApiUrlConfig.getJsonEstablishment(), "yearMonth=" + formattedDate), LargeCar.class), orgMap); // entryA(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarTerminal(), "yearMonth=" + formattedDate), LargeCar.class), orgMap); // entryA(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarNotArchived(), "yearMonth=" + formattedDate), LargeCar.class), orgMap); // entryA(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarWarning(), "yearMonth=" + formattedDate), LargeCar.class), orgMap); // entryB(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarIncrease(), "year=" + year), LargeCarDetail.class), orgMap); // entryB(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarReduce(), "year=" + year), LargeCarDetail.class), orgMap); // entryC(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarWarningTickets(), "yearMonth=" + formattedDate), LargeWarnDetail.class), orgMap); // entryC(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarWarningHoliday(), "yearMonth=" + formattedDate), LargeWarnDetail.class), orgMap); // entryC(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarWarningOverSpeed(), "yearMonth=" + formattedDate), LargeWarnDetail.class), orgMap); // entryD(JSON.parseArray(repeat(ApiUrlConfig.getJsonCarRank(), "yearMonth=" + formattedDate), LargeCarRank.class), orgMap); String a = "[\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"250302003583\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 27.8,\n" + " \"lockTime\": \"2022-04-07\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋A05D99\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2021-12-27\",\n" + " \"id\": \"9482f48e7dbe0dbb017dfafabe542b26\",\n" + " \"mileage\": 222252,\n" + " \"vehicleState\": \"正常\",\n" + " \"frameNumber\": \"LFPH4BCPXM2L63508\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业负责人用车\",\n" + " \"outputVolume\": \"2L\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 30.26,\n" + " \"scrapDate\": null,\n" + " \"brandId\": \"一汽红旗\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2021-12-17\",\n" + " \"RN\": 1,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"250302003582\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 27.8,\n" + " \"lockTime\": \"2022-04-07\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋A07D55\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2021-12-27\",\n" + " \"id\": \"9482f48e7dbe0dbb017dfafbcd6a2b2e\",\n" + " \"mileage\": 7799,\n" + " \"vehicleState\": \"正常\",\n" + " \"frameNumber\": \"LFPH4BCP2M2L57928\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业负责人用车\",\n" + " \"outputVolume\": \"2L\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 30.26,\n" + " \"scrapDate\": null,\n" + " \"brandId\": \"一汽红旗\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2021-12-17\",\n" + " \"RN\": 2,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"250302003586\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 27.8,\n" + " \"lockTime\": \"2022-04-07\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋A07D66\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2021-12-27\",\n" + " \"id\": \"9482f48f7dbe0dfb017dfb708e182aed\",\n" + " \"mileage\": 2447,\n" + " \"vehicleState\": \"正常\",\n" + " \"frameNumber\": \"LFPH4BCP5M2L58667\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业负责人用车\",\n" + " \"outputVolume\": \"2L\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 30.26,\n" + " \"scrapDate\": null,\n" + " \"brandId\": \"一汽红旗\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2021-12-17\",\n" + " \"RN\": 3,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"250302003587\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 27.8,\n" + " \"lockTime\": \"2022-08-04\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋A30LM5\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2021-12-27\",\n" + " \"id\": \"9482f48f82191d8b01823d560bc01296\",\n" + " \"mileage\": 222242,\n" + " \"vehicleState\": \"正常\",\n" + " \"frameNumber\": \"LFPH4BCPXM2L58762\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业负责人用车\",\n" + " \"outputVolume\": \"2L\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 30.26,\n" + " \"scrapDate\": null,\n" + " \"brandId\": \"一汽红旗\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2021-12-17\",\n" + " \"RN\": 4,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"250302003584\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 27.8,\n" + " \"lockTime\": \"2022-08-04\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋A30UC3\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2022-07-26\",\n" + " \"id\": \"9482f49082191d8c018239d2070612aa\",\n" + " \"mileage\": 1345,\n" + " \"vehicleState\": \"正常\",\n" + " \"frameNumber\": \"LFPH4BCP3M2L58165\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业负责人用车\",\n" + " \"outputVolume\": \"2L\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 30.26,\n" + " \"scrapDate\": null,\n" + " \"brandId\": \"一汽红旗\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2021-12-17\",\n" + " \"RN\": 5,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"250302003581\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 27.8,\n" + " \"lockTime\": \"2022-08-04\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋A69XM2\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2021-12-27\",\n" + " \"id\": \"9482f48f82191d8b01823d6c7af2132e\",\n" + " \"mileage\": 222251,\n" + " \"vehicleState\": \"正常\",\n" + " \"frameNumber\": \"LFPH4BCP4M2L63052\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业负责人用车\",\n" + " \"outputVolume\": \"2L\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 30.26,\n" + " \"scrapDate\": null,\n" + " \"brandId\": \"一汽红旗\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2021-12-17\",\n" + " \"RN\": 6,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"250302003588\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 27.8,\n" + " \"lockTime\": \"2022-03-22\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋A75WW9\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2021-12-27\",\n" + " \"id\": \"9482f4907dbe0c7f017dfb6ddb0e2b9e\",\n" + " \"mileage\": 9916,\n" + " \"vehicleState\": \"正常\",\n" + " \"frameNumber\": \"LFPH4BCP6M2L63375\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业负责人用车\",\n" + " \"outputVolume\": \"2L\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 30.26,\n" + " \"scrapDate\": null,\n" + " \"brandId\": \"一汽红旗\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2021-12-17\",\n" + " \"RN\": 7,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"250302003585\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 27.8,\n" + " \"lockTime\": \"2022-03-22\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋A76VN9\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2021-12-27\",\n" + " \"id\": \"9482f48e7dbe0dbb017dfb732edd2bf0\",\n" + " \"mileage\": 2900,\n" + " \"vehicleState\": \"正常\",\n" + " \"frameNumber\": \"LFPH4BCP6M2L63232\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业负责人用车\",\n" + " \"outputVolume\": \"2L\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 30.26,\n" + " \"scrapDate\": null,\n" + " \"brandId\": \"一汽红旗\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2021-12-20\",\n" + " \"RN\": 8,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"250302003580\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 17.9,\n" + " \"lockTime\": \"2022-03-22\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋A87UE9\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2021-12-27\",\n" + " \"id\": \"9482f48e7dbe0dbb017dfaf962102b1c\",\n" + " \"mileage\": 466,\n" + " \"vehicleState\": \"正常\",\n" + " \"frameNumber\": \"LFPH4ACP6M1E42905\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"1.8L\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 19.48,\n" + " \"scrapDate\": null,\n" + " \"brandId\": \"一汽红旗\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2021-12-17\",\n" + " \"RN\": 9,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " }]"; String b = "[\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"11011\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 10,\n" + " \"lockTime\": \"2022-06-26\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"测A11011\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2022-06-17\",\n" + " \"id\": \"9482f4908196776901819da9292c004a\",\n" + " \"mileage\": 200,\n" + " \"vehicleState\": \"已处置\",\n" + " \"frameNumber\": \"A110119\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"1.2T\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 10,\n" + " \"scrapDate\": \"2022-06-27\",\n" + " \"brandId\": \"宝马7系\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2022-06-17\",\n" + " \"RN\": 1,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司本部\",\n" + " \"assetsCard\": \"250302003231\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 24.99,\n" + " \"lockTime\": \"2022-06-26\",\n" + " \"orgCode\": \"500111001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"测A505VX\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2018-12-21\",\n" + " \"id\": \"9482f4908196776901819f33ebd70067\",\n" + " \"mileage\": 120,\n" + " \"vehicleState\": \"已处置\",\n" + " \"frameNumber\": \"LSGUL83L7KA048532\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"2T\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 31.48,\n" + " \"scrapDate\": \"2022-07-15\",\n" + " \"brandId\": \"别克VELITE 2\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2018-12-21\",\n" + " \"RN\": 2,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"无\",\n" + " \"assetsCard\": null,\n" + " \"configMode\": \"租赁\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 21.05,\n" + " \"lockTime\": \"2019-10-22\",\n" + " \"orgCode\": \"500111002005\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋FDB920\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2019-08-29\",\n" + " \"id\": \"8a8134d66d5c00c9016d62629fe01cad\",\n" + " \"mileage\": 17737,\n" + " \"vehicleState\": \"已处置\",\n" + " \"frameNumber\": \"LSGUA84L8KF052787\",\n" + " \"orgName\": \"国网山西省电力公司晋中市寿阳县供电公司\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"2T\",\n" + " \"assetsOrgNature\": \"社会企业\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 23.79,\n" + " \"scrapDate\": \"2022-03-10\",\n" + " \"brandId\": \"别克VELITE 2\",\n" + " \"typeId\": \"商务车\",\n" + " \"buyCarDate\": \"2019-08-29\",\n" + " \"RN\": 3,\n" + " \"leaseTag\": \"租入\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"无\",\n" + " \"assetsCard\": null,\n" + " \"configMode\": \"租赁\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 21.05,\n" + " \"lockTime\": \"2019-10-22\",\n" + " \"orgCode\": \"500111002006\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋FCA183\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2019-08-29\",\n" + " \"id\": \"8a8134d66d5c00c9016d627781a43d20\",\n" + " \"mileage\": 16213,\n" + " \"vehicleState\": \"已处置\",\n" + " \"frameNumber\": \"LSGUA84L7KF052800\",\n" + " \"orgName\": \"国网山西省电力公司晋中市昔阳县供电公司\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"2T\",\n" + " \"assetsOrgNature\": \"社会企业\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 23.79,\n" + " \"scrapDate\": \"2022-03-10\",\n" + " \"brandId\": \"别克VELITE 2\",\n" + " \"typeId\": \"商务车\",\n" + " \"buyCarDate\": \"2019-08-29\",\n" + " \"RN\": 4,\n" + " \"leaseTag\": \"租入\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"无\",\n" + " \"assetsCard\": null,\n" + " \"configMode\": \"租赁\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 21.05,\n" + " \"lockTime\": \"2019-10-22\",\n" + " \"orgCode\": \"500111002007\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋FYM153\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2019-08-29\",\n" + " \"id\": \"8a8134d66d5c00c9016d628cfb4d6271\",\n" + " \"mileage\": 47161,\n" + " \"vehicleState\": \"已处置\",\n" + " \"frameNumber\": \"LSGUA84L1KF052775\",\n" + " \"orgName\": \"国网山西省电力公司晋中市和顺县供电公司\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"2T\",\n" + " \"assetsOrgNature\": \"社会企业\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 23.79,\n" + " \"scrapDate\": \"2022-03-10\",\n" + " \"brandId\": \"别克VELITE 2\",\n" + " \"typeId\": \"商务车\",\n" + " \"buyCarDate\": \"2019-08-29\",\n" + " \"RN\": 5,\n" + " \"leaseTag\": \"租入\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"无\",\n" + " \"assetsCard\": null,\n" + " \"configMode\": \"租赁\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 21.05,\n" + " \"lockTime\": \"2019-10-22\",\n" + " \"orgCode\": \"500111002010\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋FJA293\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2019-08-29\",\n" + " \"id\": \"8a8134d66d5c00c9016d62874835585e\",\n" + " \"mileage\": 21671,\n" + " \"vehicleState\": \"已处置\",\n" + " \"frameNumber\": \"LSGUA84L7KF052599\",\n" + " \"orgName\": \"国网山西省电力公司晋中市榆社县供电公司\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"2T\",\n" + " \"assetsOrgNature\": \"社会企业\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 23.79,\n" + " \"scrapDate\": \"2022-03-10\",\n" + " \"brandId\": \"别克VELITE 2\",\n" + " \"typeId\": \"商务车\",\n" + " \"buyCarDate\": \"2019-08-29\",\n" + " \"RN\": 6,\n" + " \"leaseTag\": \"租入\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"无\",\n" + " \"assetsCard\": null,\n" + " \"configMode\": \"租赁\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 21.05,\n" + " \"lockTime\": \"2019-10-22\",\n" + " \"orgCode\": \"500111002011\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋FEW285\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2019-08-29\",\n" + " \"id\": \"8a8134d66d5c00c9016d627356d43704\",\n" + " \"mileage\": 54522,\n" + " \"vehicleState\": \"已处置\",\n" + " \"frameNumber\": \"LSGUA84L6KF052755\",\n" + " \"orgName\": \"国网山西省电力公司晋中市祁县供电公司\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"2T\",\n" + " \"assetsOrgNature\": \"社会企业\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 23.79,\n" + " \"scrapDate\": \"2022-03-10\",\n" + " \"brandId\": \"别克VELITE 2\",\n" + " \"typeId\": \"商务车\",\n" + " \"buyCarDate\": \"2019-08-29\",\n" + " \"RN\": 7,\n" + " \"leaseTag\": \"租入\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司临汾供电公司\",\n" + " \"assetsCard\": \"250302001324\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 0,\n" + " \"lockTime\": \"2014-01-01\",\n" + " \"orgCode\": \"500111003001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋L11110\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2010-04-30\",\n" + " \"id\": \"ff808081493dfddc014942ee4ce32d2d\",\n" + " \"mileage\": 356601,\n" + " \"vehicleState\": \"已处置\",\n" + " \"frameNumber\": \"LFV3A24F3A3031469\",\n" + " \"orgName\": \"国网山西省电力公司临汾供电公司本部\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"2T\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 42.87,\n" + " \"scrapDate\": \"2022-03-22\",\n" + " \"brandId\": \"奥迪A6L\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2010-04-30\",\n" + " \"RN\": 8,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"国网山西省电力公司临汾供电公司\",\n" + " \"assetsCard\": \"250302001390\",\n" + " \"configMode\": \"购置\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 0,\n" + " \"lockTime\": \"2018-03-27\",\n" + " \"orgCode\": \"500111003001\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋L92666\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2011-01-07\",\n" + " \"id\": \"ff808081493dfddc014942ee4c872d2b\",\n" + " \"mileage\": 287989,\n" + " \"vehicleState\": \"已处置\",\n" + " \"frameNumber\": \"LFV3A24F2A3106849\",\n" + " \"orgName\": \"国网山西省电力公司临汾供电公司本部\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"2T\",\n" + " \"assetsOrgNature\": \"主业单位\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"蓝\",\n" + " \"vehiclePriceTax\": 43.41,\n" + " \"scrapDate\": \"2022-03-22\",\n" + " \"brandId\": \"奥迪A6L\",\n" + " \"typeId\": \"小轿车\",\n" + " \"buyCarDate\": \"2011-01-07\",\n" + " \"RN\": 9,\n" + " \"leaseTag\": \"自用\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " },\n" + " {\n" + " \"lockTag\": \"已审核\",\n" + " \"keepTag\": \"在用\",\n" + " \"assetsOrgId\": \"朔州庆铃汽车销售有限公司\",\n" + " \"assetsCard\": null,\n" + " \"configMode\": \"租赁\",\n" + " \"vehicleRfid\": null,\n" + " \"orgNature\": \"主业单位\",\n" + " \"vehiclePrice\": 0,\n" + " \"lockTime\": \"2019-10-29\",\n" + " \"orgCode\": \"500111003005\",\n" + " \"useProperty\": \"公务用车\",\n" + " \"handleReason\": null,\n" + " \"vehicleNumber\": \"晋FMQ216\",\n" + " \"handleDate\": null,\n" + " \"orgDate\": \"2019-10-23\",\n" + " \"id\": \"8a8134d66d1a0bd6016df61a90014674\",\n" + " \"mileage\": 19998,\n" + " \"vehicleState\": \"已处置\",\n" + " \"frameNumber\": \"LSGUA84L7KF052733\",\n" + " \"orgName\": \"国网山西省电力公司浮山县供电公司\",\n" + " \"useId\": \"企业用车\",\n" + " \"outputVolume\": \"2T\",\n" + " \"assetsOrgNature\": \"社会企业\",\n" + " \"vehicleProperty\": \"00\",\n" + " \"licensePlateColor\": \"白\",\n" + " \"vehiclePriceTax\": 38,\n" + " \"scrapDate\": \"2022-03-01\",\n" + " \"brandId\": \"别克VELITE 2\",\n" + " \"typeId\": \"商务车\",\n" + " \"buyCarDate\": \"2019-10-23\",\n" + " \"RN\": 10,\n" + " \"leaseTag\": \"租入\",\n" + " \"wsname\": \"国网山西电力\",\n" + " \"powerType\": \"汽油\"\n" + " }\n" + " ]\n"; String c = "[\n" + " {\n" + " \"alertType\": \"未带工单报警\",\n" + " \"orgName\": \"国网山西省电力公司太原供电公司\",\n" + " \"orgCode\": \"500111009\",\n" + " \"vehicleNumber\": \"晋A3KS16\",\n" + " \"startTime\": \"2024-04-30\",\n" + " \"endTime\": \"2024-04-30\",\n" + " \"RN\": 1\n" + " },\n" + " {\n" + " \"alertType\": \"未带工单报警\",\n" + " \"orgName\": \"国网山西省电力公司太原供电公司\",\n" + " \"orgCode\": \"500111009\",\n" + " \"vehicleNumber\": \"晋A8GD15\",\n" + " \"startTime\": \"2024-04-30\",\n" + " \"endTime\": \"2024-04-30\",\n" + " \"RN\": 2\n" + " },\n" + " {\n" + " \"alertType\": \"未带工单报警\",\n" + " \"orgName\": \"国网山西省电力公司太原供电公司\",\n" + " \"orgCode\": \"500111009\",\n" + " \"vehicleNumber\": \"晋A9JZ95\",\n" + " \"startTime\": \"2024-04-30\",\n" + " \"endTime\": \"2024-04-30\",\n" + " \"RN\": 3\n" + " }\n" + " ]\n"; String d = "[\n" + " {\n" + " \"alertType\": \"超速报警\",\n" + " \"orgName\": \"国网山西省电力公司太原供电公司\",\n" + " \"orgCode\": \"500111009\",\n" + " \"vehicleNumber\": \"晋A9JZ95\",\n" + " \"startTime\": \"2024-04-29\",\n" + " \"endTime\": \"2024-04-29\",\n" + " \"RN\": 1\n" + " },\n" + " {\n" + " \"alertType\": \"超速报警\",\n" + " \"orgName\": \"国网山西省电力公司太原供电公司\",\n" + " \"orgCode\": \"500111009\",\n" + " \"vehicleNumber\": \"晋A3KS16\",\n" + " \"startTime\": \"2024-04-29\",\n" + " \"endTime\": \"2024-04-29\",\n" + " \"RN\": 2\n" + " },\n" + " {\n" + " \"alertType\": \"超速报警\",\n" + " \"orgName\": \"国网山西省电力公司太原供电公司\",\n" + " \"orgCode\": \"500111009\",\n" + " \"vehicleNumber\": \"晋A9JZ95\",\n" + " \"startTime\": \"2024-04-29\",\n" + " \"endTime\": \"2024-04-29\",\n" + " \"RN\": 3\n" + " }\n" + " ]\n"; String e = "[\n" + " {\n" + " \"alertType\": \"节假日用车报警\",\n" + " \"orgName\": \"国网山西省电力公司朔州供电公司本部\",\n" + " \"orgCode\": \"500111012001\",\n" + " \"vehicleNumber\": \"晋FAV297\",\n" + " \"startTime\": \"2021-02-28\",\n" + " \"endTime\": \"2021-03-01\",\n" + " \"RN\": 1\n" + " },\n" + " {\n" + " \"alertType\": \"节假日用车报警\",\n" + " \"orgName\": \"国网山西省电力公司神池县供电公司\",\n" + " \"orgCode\": \"500111008015\",\n" + " \"vehicleNumber\": \"晋HXD173\",\n" + " \"startTime\": \"2021-02-28\",\n" + " \"endTime\": \"2021-02-28\",\n" + " \"RN\": 2\n" + " },\n" + " {\n" + " \"alertType\": \"节假日用车报警\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"orgCode\": \"500111001\",\n" + " \"vehicleNumber\": \"晋AQZ669\",\n" + " \"startTime\": \"2021-02-28\",\n" + " \"endTime\": \"2021-02-28\",\n" + " \"RN\": 3\n" + " },\n" + " {\n" + " \"alertType\": \"节假日用车报警\",\n" + " \"orgName\": \"国网山西省电力公司晋电服务中心\",\n" + " \"orgCode\": \"500111015\",\n" + " \"vehicleNumber\": \"晋AKY968\",\n" + " \"startTime\": \"2021-02-28\",\n" + " \"endTime\": \"2021-02-28\",\n" + " \"RN\": 4\n" + " },\n" + " {\n" + " \"alertType\": \"节假日用车报警\",\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"orgCode\": \"500111001\",\n" + " \"vehicleNumber\": \"晋A585BS\",\n" + " \"startTime\": \"2021-02-28\",\n" + " \"endTime\": \"2021-02-28\",\n" + " \"RN\": 5\n" + " },\n" + " {\n" + " \"alertType\": \"节假日用车报警\",\n" + " \"orgName\": \"国网山西省电力公司晋电服务中心\",\n" + " \"orgCode\": \"500111015\",\n" + " \"vehicleNumber\": \"晋AKY968\",\n" + " \"startTime\": \"2021-02-28\",\n" + " \"endTime\": \"2021-02-28\",\n" + " \"RN\": 6\n" + " },\n" + " {\n" + " \"alertType\": \"节假日用车报警\",\n" + " \"orgName\": \"国网山西省电力公司长治供电公司本部\",\n" + " \"orgCode\": \"500111007001\",\n" + " \"vehicleNumber\": \"晋D12J21\",\n" + " \"startTime\": \"2021-02-28\",\n" + " \"endTime\": \"2021-02-28\",\n" + " \"RN\": 7\n" + " },\n" + " {\n" + " \"alertType\": \"节假日用车报警\",\n" + " \"orgName\": \"国网山西长治市武乡县供电公司 \",\n" + " \"orgCode\": \"500111007002\",\n" + " \"vehicleNumber\": \"晋D85G06\",\n" + " \"startTime\": \"2021-02-28\",\n" + " \"endTime\": \"2021-02-28\",\n" + " \"RN\": 8\n" + " },\n" + " {\n" + " \"alertType\": \"节假日用车报警\",\n" + " \"orgName\": \"国网山西省电力公司侯马市供电公司\",\n" + " \"orgCode\": \"500111003010\",\n" + " \"vehicleNumber\": \"晋FYK081\",\n" + " \"startTime\": \"2021-02-28\",\n" + " \"endTime\": \"2021-02-28\",\n" + " \"RN\": 9\n" + " },\n" + " {\n" + " \"alertType\": \"节假日用车报警\",\n" + " \"orgName\": \"国网山西省电力公司运城市河津市供电公司\",\n" + " \"orgCode\": \"500111006010\",\n" + " \"vehicleNumber\": \"晋M9712J\",\n" + " \"startTime\": \"2021-02-28\",\n" + " \"endTime\": \"2021-02-28\",\n" + " \"RN\": 10\n" + " }\n" + " ]\n"; String f = "[\n" + " {\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"orgCode\": \"500111001\",\n" + " \"vehicleNumber\": \"晋A05D99\",\n" + " \"vehicleId\": \"9482f48e7dbe0dbb017dfafabe542b26\",\n" + " \"pcdCount\": 10,\n" + " \"COUNTNUM\": 10\n" + " },\n" + " {\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"orgCode\": \"500111001\",\n" + " \"vehicleNumber\": \"晋A3GK82\",\n" + " \"vehicleId\": \"8a8134d56e938cae016f3b0e74577ed0\",\n" + " \"pcdCount\": 9,\n" + " \"COUNTNUM\": 9\n" + " },\n" + " {\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"orgCode\": \"500111001\",\n" + " \"vehicleNumber\": \"晋A07D33\",\n" + " \"vehicleId\": \"ff80808148fad8e50148fe9a5ef8523c\",\n" + " \"pcdCount\": 4,\n" + " \"COUNTNUM\": 4\n" + " },\n" + " {\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"orgCode\": \"500111001\",\n" + " \"vehicleNumber\": \"晋A06D33\",\n" + " \"vehicleId\": \"ff80808148fad8e50148fe9a5ec2523b\",\n" + " \"pcdCount\": 3,\n" + " \"COUNTNUM\": 3\n" + " },\n" + " {\n" + " \"orgName\": \"国网山西省电力公司吕梁市岚县供电公司\",\n" + " \"orgCode\": \"500111005006\",\n" + " \"vehicleNumber\": \"晋A000QC\",\n" + " \"vehicleId\": \"9482f48e80cce8d00180da0e87ac0c19\",\n" + " \"pcdCount\": 3,\n" + " \"COUNTNUM\": 3\n" + " },\n" + " {\n" + " \"orgName\": \"国网山西省电力公司运城供电公司本部\",\n" + " \"orgCode\": \"500111006001\",\n" + " \"vehicleNumber\": \"晋A3JC72\",\n" + " \"vehicleId\": \"8a8134f270fb8257017134afb91823f7\",\n" + " \"pcdCount\": 1,\n" + " \"COUNTNUM\": 1\n" + " },\n" + " {\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"orgCode\": \"500111001\",\n" + " \"vehicleNumber\": \"晋AQW669\",\n" + " \"vehicleId\": \"ff80808148fad8e50148fe9a68205262\",\n" + " \"pcdCount\": 1,\n" + " \"COUNTNUM\": 1\n" + " },\n" + " {\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"orgCode\": \"500111001\",\n" + " \"vehicleNumber\": \"晋A1LZ78\",\n" + " \"vehicleId\": \"8a8134f270fb8257017134a28b011bb5\",\n" + " \"pcdCount\": 1,\n" + " \"COUNTNUM\": 1\n" + " },\n" + " {\n" + " \"orgName\": \"国网山西省电力公司本部\",\n" + " \"orgCode\": \"500111001\",\n" + " \"vehicleNumber\": \"晋A0LJ73\",\n" + " \"vehicleId\": \"8a8134f270fb825701713497a4fd14d7\",\n" + " \"pcdCount\": 1,\n" + " \"COUNTNUM\": 1\n" + " }\n" + " ]\n"; entryB(JSON.parseArray(a, LargeCarDetail.class), orgMap, 0); entryB(JSON.parseArray(b, LargeCarDetail.class), orgMap, 1); entryC(JSON.parseArray(c, LargeWarnDetail.class), orgMap, "未带工单报警"); entryC(JSON.parseArray(d, LargeWarnDetail.class), orgMap, "超速报警"); entryC(JSON.parseArray(e, LargeWarnDetail.class), orgMap, "节假日用车报警"); entryD(JSON.parseArray(f, LargeCarRank.class), orgMap); } public void entryA(List x, Map map){ try { for (LargeCar it : x){ if (!map.containsKey(it.getAppEncode()) || !map.get(it.getAppEncode()).equals("10001")){ continue; } QueryWrapper lqw = new QueryWrapper(); lqw.eq("app_encode", it.getAppEncode()); lqw.last("limit 1"); LargeCar car = largePlatPublicCarService.getOne(lqw); if (car != null){ it.setId(car.getId()); largePlatPublicCarService.updateById(it); } else largePlatPublicCarService.save(it); } } catch (Exception e) { throw new RuntimeException(e); } } /** * 车辆年度变化明细 * @param x * @param map * @param flag */ public void entryB(List x, Map map, Integer flag){ try { platCarMapper.deleteAllCarDetail(flag); for (LargeCarDetail it : x){ if (!map.containsKey(it.getAppEncode()) || !map.get(it.getAppEncode()).equals("10001")){ continue; } it.setFlag(flag); largeCarDetailService.save(it); } } catch (Exception e) { throw new RuntimeException(e); } } /** * 车辆告警明细 * @param x * @param map */ public void entryC(List x, Map map, String alertType){ try { platCarMapper.deleteAllWarnDetail(alertType); for (LargeWarnDetail it : x){ if (!map.containsKey(it.getAppEncode()) || !map.get(it.getAppEncode()).equals("10001")){ continue; } largeWarnDetailService.save(it); } } catch (Exception e) { throw new RuntimeException(e); } } /** * 车辆排名 * @param x * @param map */ public void entryD(List x, Map map){ try { platCarMapper.deleteAllCarRank(); largeCarRankService.remove(null); for (LargeCarRank it : x){ if (!map.containsKey(it.getAppEncode()) || !map.get(it.getAppEncode()).equals("10001")){ continue; } largeCarRankService.save(it); } } catch (Exception e) { throw new RuntimeException(e); } } public String repeat(String url, String params){ String result = null; try { if (StringUtils.isNotBlank(params)){ String res = HttpUtils.sendPost(url, params); if (StringUtils.isNotBlank(res)){ JSONObject jsonObject = JSONObject.parseObject(res); result = jsonObject.getString("data"); } } else { String res = HttpUtils.sendGet(url); if (StringUtils.isNotBlank(res)){ JSONObject jsonObject = JSONObject.parseObject(res); result = jsonObject.getString("data"); } } } catch (Exception e){ result = e.getMessage(); } // 添加接口请求记录 PlatApiRecord platApiRecord = new PlatApiRecord(); platApiRecord.setApiUrl(url); platApiRecord.setApiResult(result); iPlatApiRecordService.save(platApiRecord); return result; } }