This commit is contained in:
admin-lmm
2023-06-28 10:25:29 +08:00
7 changed files with 56 additions and 49 deletions

View File

@@ -1,6 +1,7 @@
package com.jsowell.thirdparty.amap.domain; package com.jsowell.thirdparty.amap.domain;
import com.alibaba.fastjson2.annotation.JSONField; import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@@ -18,7 +19,7 @@ import java.math.BigDecimal;
public class AMapConnectorInfo { public class AMapConnectorInfo {
// 充电设备接口编码,同一运营商内唯一 // 充电设备接口编码,同一运营商内唯一
@JSONField(name = "ConnectorID") @JsonProperty(value = "ConnectorID")
private String connectorID; private String connectorID;
/** /**
@@ -29,23 +30,23 @@ public class AMapConnectorInfo {
* 4直流接口枪头带枪线模式4 5无线充电座 * 4直流接口枪头带枪线模式4 5无线充电座
* 6其他 * 6其他
*/ */
@JSONField(name = "ConnectorType") @JsonProperty(value = "ConnectorType")
private Integer connectorType; private Integer connectorType;
// 额定电压上限。单位V // 额定电压上限。单位V
@JSONField(name = "VoltageUpperLimits") @JsonProperty(value = "VoltageUpperLimits")
private Integer voltageUpperLimits; private Integer voltageUpperLimits;
// 额定电压限。单位V // 额定电压限。单位V
@JSONField(name = "VoltageLowerLimits") @JsonProperty(value = "VoltageLowerLimits")
private Integer voltageLowerLimits; private Integer voltageLowerLimits;
// 额定电流 单位A // 额定电流 单位A
@JSONField(name = "Current") @JsonProperty(value = "Current")
private Integer current; private Integer current;
// 额定功率 单位kW 保留小数点后一位 // 额定功率 单位kW 保留小数点后一位
@JSONField(name = "Power") @JsonProperty(value = "Power")
private BigDecimal power; private BigDecimal power;
/** /**
@@ -53,10 +54,10 @@ public class AMapConnectorInfo {
* 1:2011 * 1:2011
* 2:2015 * 2:2015
*/ */
@JSONField(name = "NationalStandard") @JsonProperty(value = "NationalStandard")
private Integer nationalStandard; private Integer nationalStandard;
// 所属运营商的品牌名称 // 所属运营商的品牌名称
@JSONField(name = "BrandDesc") @JsonProperty(value = "BrandDesc")
private String brandDesc; private String brandDesc;
} }

View File

@@ -1,6 +1,7 @@
package com.jsowell.thirdparty.amap.domain; package com.jsowell.thirdparty.amap.domain;
import com.alibaba.fastjson2.annotation.JSONField; import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@@ -19,11 +20,11 @@ import lombok.NoArgsConstructor;
public class AMapConnectorStatusInfo { public class AMapConnectorStatusInfo {
//充电设备接口编码,同一运营商内唯一 //充电设备接口编码,同一运营商内唯一
@JSONField(name = "ConnectorID") @JsonProperty(value = "ConnectorID")
private String connectorID; private String connectorID;
// 充电枪所属的桩设备ID // 充电枪所属的桩设备ID
@JSONField(name = "EquipmentID") @JsonProperty(value = "EquipmentID")
private String equipmentID; private String equipmentID;
/** /**
@@ -35,7 +36,7 @@ public class AMapConnectorStatusInfo {
* 4占用预约锁定 * 4占用预约锁定
* 255故障 * 255故障
*/ */
@JSONField(name = "Status") @JsonProperty(value = "Status")
private String status; private String status;
} }

View File

@@ -1,6 +1,7 @@
package com.jsowell.thirdparty.amap.domain; package com.jsowell.thirdparty.amap.domain;
import com.alibaba.fastjson2.annotation.JSONField; import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@@ -21,17 +22,17 @@ import java.math.BigDecimal;
public class AMapDiscountPriceChargingInfo { public class AMapDiscountPriceChargingInfo {
// 收费时间段 00:00-24:00表示全天电价相同 // 收费时间段 00:00-24:00表示全天电价相同
@JSONField(name = "DiscountTime") @JsonProperty(value = "DiscountTime")
private String discountTime; private String discountTime;
// 站点充电费优惠价 // 站点充电费优惠价
// 只填数字或数字区间,单位:元/度。 // 只填数字或数字区间,单位:元/度。
// 空表示未获取到价格0.00表示免费 // 空表示未获取到价格0.00表示免费
// 格式:保留四位小数 // 格式:保留四位小数
@JSONField(name = "DiscountElectricityFee") @JsonProperty(value = "DiscountElectricityFee")
private BigDecimal discountElectricityFee; private BigDecimal discountElectricityFee;
// 站点服务费优惠价 // 站点服务费优惠价
@JSONField(name = "DiscountServiceFee") @JsonProperty(value = "DiscountServiceFee")
private BigDecimal discountServiceFee; private BigDecimal discountServiceFee;
} }

View File

@@ -1,6 +1,7 @@
package com.jsowell.thirdparty.amap.domain; package com.jsowell.thirdparty.amap.domain;
import com.alibaba.fastjson2.annotation.JSONField; import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@@ -18,11 +19,11 @@ import java.util.List;
@Data @Data
public class AMapEquipmentInfo { public class AMapEquipmentInfo {
// 设备唯一编码,对同一运营商,保证唯一 // 设备唯一编码,对同一运营商,保证唯一
@JSONField(name = "EquipmentID") @JsonProperty(value = "EquipmentID")
private String equipmentID; private String equipmentID;
// 设备生产商名称 // 设备生产商名称
@JSONField(name = "ManufacturerName") @JsonProperty(value = "ManufacturerName")
private String manufacturerName; private String manufacturerName;
/** /**
@@ -35,14 +36,14 @@ public class AMapEquipmentInfo {
* 12直流慢充 * 12直流慢充
* 13交流快充 * 13交流快充
*/ */
@JSONField(name = "EquipmentType") @JsonProperty(value = "EquipmentType")
private Integer equipmentType; private Integer equipmentType;
// 充电设备接口列表 // 充电设备接口列表
@JSONField(name = "ConnectorInfos") @JsonProperty(value = "ConnectorInfos")
private List<AMapConnectorInfo> connectorInfos; private List<AMapConnectorInfo> connectorInfos;
// 充电设备总功率 单位kW // 充电设备总功率 单位kW
@JSONField(name = "Power") @JsonProperty(value = "Power")
private BigDecimal power; private BigDecimal power;
} }

View File

@@ -1,6 +1,7 @@
package com.jsowell.thirdparty.amap.domain; package com.jsowell.thirdparty.amap.domain;
import com.alibaba.fastjson2.annotation.JSONField; import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@@ -18,14 +19,14 @@ import lombok.NoArgsConstructor;
@Data @Data
public class AMapPictures { public class AMapPictures {
// 图片ID // 图片ID
@JSONField(name = "PicID") @JsonProperty(value = "PicID")
private String picID; private String picID;
// 图片网址 // 图片网址
@JSONField(name = "Url") @JsonProperty(value = "Url")
private String url; private String url;
// 图片标题 // 图片标题
@JSONField(name = "Title") @JsonProperty(value = "Title")
private String title; private String title;
} }

View File

@@ -1,6 +1,7 @@
package com.jsowell.thirdparty.amap.domain; package com.jsowell.thirdparty.amap.domain;
import com.alibaba.fastjson2.annotation.JSONField; import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@@ -25,7 +26,7 @@ public class AMapPriceChargingInfo {
* 02:00-03:00 * 02:00-03:00
* 09:00-17:00 * 09:00-17:00
*/ */
@JSONField(name = "FeeTime") @JsonProperty(value = "FeeTime")
private String feeTime; private String feeTime;
/** /**
@@ -36,7 +37,7 @@ public class AMapPriceChargingInfo {
* 示例: * 示例:
* 2.0000 * 2.0000
*/ */
@JSONField(name = "ElectricityFee") @JsonProperty(value = "ElectricityFee")
private BigDecimal electricityFee; private BigDecimal electricityFee;
/** /**
@@ -47,6 +48,6 @@ public class AMapPriceChargingInfo {
* 示例: * 示例:
* 2.0000 * 2.0000
*/ */
@JSONField(name = "ServiceFee") @JsonProperty(value = "ServiceFee")
private BigDecimal serviceFee; private BigDecimal serviceFee;
} }

View File

@@ -1,6 +1,7 @@
package com.jsowell.thirdparty.amap.domain; package com.jsowell.thirdparty.amap.domain;
import com.alibaba.fastjson2.annotation.JSONField; import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@@ -18,43 +19,43 @@ import java.util.List;
@Data @Data
public class AMapStationInfo { public class AMapStationInfo {
// 充电站ID 运营商自定义的唯一编码 // 充电站ID 运营商自定义的唯一编码
@JSONField(name = "StationID") @JsonProperty(value = "StationID")
private String stationID; private String stationID;
// 运营商ID // 运营商ID
@JSONField(name = "OperatorID") @JsonProperty(value = "OperatorID")
private String operatorID; private String operatorID;
// 设备所属方ID 设备所属运营平台组织机构代码 // 设备所属方ID 设备所属运营平台组织机构代码
@JSONField(name = "EquipmentOwnerID") @JsonProperty(value = "EquipmentOwnerID")
private String equipmentOwnerID; private String equipmentOwnerID;
// 充电站运营商品牌名称 // 充电站运营商品牌名称
// -拼接poi名称使用请谨慎填写 // -拼接poi名称使用请谨慎填写
@JSONField(name = "OperatorName") @JsonProperty(value = "OperatorName")
private String operatorName; private String operatorName;
/** /**
* 充电站名称的描述 * 充电站名称的描述
* -拼接poi名称使用请谨慎填写 * -拼接poi名称使用请谨慎填写
*/ */
@JSONField(name = "StationName") @JsonProperty(value = "StationName")
private String stationName; private String stationName;
// 充电站国家代码 比如CN // 充电站国家代码 比如CN
@JSONField(name = "CountryCode") @JsonProperty(value = "CountryCode")
private String countryCode; private String countryCode;
// 充电站省市辖区编码 // 充电站省市辖区编码
@JSONField(name = "AreaCode") @JsonProperty(value = "AreaCode")
private String areaCode; private String areaCode;
// 详细地址,不含省市区 // 详细地址,不含省市区
@JSONField(name = "Address") @JsonProperty(value = "Address")
private String address; private String address;
// 平台服务电话例如400的电话 // 平台服务电话例如400的电话
@JSONField(name = "ServiceTel") @JsonProperty(value = "ServiceTel")
private String serviceTel; private String serviceTel;
/** /**
@@ -70,7 +71,7 @@ public class AMapStationInfo {
* 106车企站专用 * 106车企站专用
* 255其他 * 255其他
*/ */
@JSONField(name = "StationType") @JsonProperty(value = "StationType")
private Integer stationType; private Integer stationType;
/** /**
@@ -81,7 +82,7 @@ public class AMapStationInfo {
* 6维护中 * 6维护中
* 50正常使用 * 50正常使用
*/ */
@JSONField(name = "StationStatus") @JsonProperty(value = "StationStatus")
private Integer stationStatus; private Integer stationStatus;
/** /**
@@ -89,19 +90,19 @@ public class AMapStationInfo {
* 0完全对外 * 0完全对外
* 7不对外开放 * 7不对外开放
*/ */
@JSONField(name = "OpenType") @JsonProperty(value = "OpenType")
private Integer openType; private Integer openType;
// 车位数量 可停放进行充电的车位总数默认0 未知 // 车位数量 可停放进行充电的车位总数默认0 未知
@JSONField(name = "ParkNums") @JsonProperty(value = "ParkNums")
private Integer parkNums; private Integer parkNums;
// 经度 // 经度
@JSONField(name = "StationLng") @JsonProperty(value = "StationLng")
private BigDecimal stationLng; private BigDecimal stationLng;
// 纬度 // 纬度
@JSONField(name = "StationLat") @JsonProperty(value = "StationLat")
private BigDecimal stationLat; private BigDecimal stationLat;
/** /**
@@ -123,7 +124,7 @@ public class AMapStationInfo {
* 15酒店 * 15酒店
* 255其他 * 255其他
*/ */
@JSONField(name = "Construction") @JsonProperty(value = "Construction")
private Integer construction; private Integer construction;
/** /**
@@ -132,30 +133,30 @@ public class AMapStationInfo {
* 00:00-24:00; * 00:00-24:00;
* 08:00-20:00 * 08:00-20:00
*/ */
@JSONField(name = "BusineHours") @JsonProperty(value = "BusineHours")
private String busineHours; private String busineHours;
// 充电收费信息 // 充电收费信息
@JSONField(name = "PriceChargingInfo") @JsonProperty(value = "PriceChargingInfo")
private List<AMapPriceChargingInfo> priceChargingInfo; private List<AMapPriceChargingInfo> priceChargingInfo;
// 站点照片 // 站点照片
@JSONField(name = "Pictures") @JsonProperty(value = "Pictures")
private List<AMapPictures> pictures; private List<AMapPictures> pictures;
// 站点收费价格明细_优惠价 // 站点收费价格明细_优惠价
@JSONField(name = "DiscountPriceChargingInfo") @JsonProperty(value = "DiscountPriceChargingInfo")
private List<AMapDiscountPriceChargingInfo> discountPriceChargingInfo; private List<AMapDiscountPriceChargingInfo> discountPriceChargingInfo;
// 快充总桩数 // 快充总桩数
@JSONField(name = "FastEquipmentNum") @JsonProperty(value = "FastEquipmentNum")
private Integer fastEquipmentNum; private Integer fastEquipmentNum;
// 慢充总桩数 // 慢充总桩数
@JSONField(name = "SlowEquipmentNum") @JsonProperty(value = "SlowEquipmentNum")
private Integer slowEquipmentNum; private Integer slowEquipmentNum;
// 充电设备信息列表 // 充电设备信息列表
@JSONField(name = "EquipmentInfos") @JsonProperty(value = "EquipmentInfos")
private List<AMapEquipmentInfo> equipmentInfos; private List<AMapEquipmentInfo> equipmentInfos;
} }