update新增吉林省平台要求必须实现接口

This commit is contained in:
YAS\29473
2025-07-16 16:26:49 +08:00
parent be80579377
commit e3b1c50425
5 changed files with 274 additions and 2 deletions

View File

@@ -0,0 +1,91 @@
package com.jsowell.thirdparty.lianlian.domain;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class EquipmentAccidentInfo {
/**
* 区划代码
*/
@JSONField(name = "AreaCode")
private String areaCode;
/**
* 事故地点
*/
@JSONField(name = "Address")
private String address;
/**
* 事故主体
* 1.运营商
* 2.车企
* 3.设备制造商
*/
@JSONField(name = "AccidentEntity")
private int accidentEntity;
/**
* 事故类型
* 1.充电设备质量问题
* 2.电动车电池故障
* 3.电网故障
* 4.充电站管理问题
* 99.其他
*/
@JSONField(name = "Type")
private int type;
/**
* 事故原因
*/
@JSONField(name = "AccidentReason")
private String accidentReason;
/**
* 事故分级
* 1.造成经济损失且有人员伤亡
* 2.造成经济损失但未造成人员伤亡
* 3.造成经济损失且无人员伤亡
* 4.未造成经济损失且无人员伤亡
*/
@JSONField(name = "Level")
private int level;
/**
* 发生时间
* 格式yyyy-MM-dd HH:mm:ss
*/
@JSONField(name = "AccidentTime")
private String accidentTime;
/**
* 事故文字描述
*/
@JSONField(name = "Description")
private String description;
/**
* 现场图片
* 可访问的图片URL数组
*/
@JSONField(name = "Pictures")
private List<String> pictures;
/**
* 事故分析报告
* 可访问的文件URL数组
*/
@JSONField(name = "AnalysisReport")
private List<String> analysisReport;
}

View File

@@ -0,0 +1,95 @@
package com.jsowell.thirdparty.lianlian.domain;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SubsidyGrantInfo {
/**
* 站点id
*/
@JSONField(name = "StationID")
private String stationId;
/**
* 补贴唯一编码
* 地区码6 位)+开 始建设日期 (yyyyMMdd)+顺序编 码(6 位
*/
@JSONField(name = "UniqueNumber")
private String uniqueNumber;
/**
* 补贴地区码
*/
@JSONField(name = "AreaCode")
private String areaCode;
/**
* 服务运营商id
*/
@JSONField(name = "EquipmentOwnerID")
private String EquipmentOwnerID;
/**
* 站点建设场所
* 1居民区 2公共机构 3企事业单位 4写字楼 5工业园区 6交通枢纽 7大型文体设施 8城市绿地
* 9大型建筑配建停车 场10路边停车位 11城际高速服务区 12风景区 13公交场站 14加油加气站 15出租车 255其他
*/
@JSONField(name = "Construction")
private int construction;
/**
* 设备类型
* 1直流设备 2交流设备 3交直流一体设备 4无线设备 5其他
* 注:站点分类为 1 或 3 时,此字段为必 填项;站点分类为 2 时,此字段为 非必填项
*/
@JSONField(name = "EquipmentType")
private List<Integer> equipmentType;
/**
* 设备补贴数量
*/
@JSONField(name = "Quantity")
private int quantity;
/**
* 补贴类型
*/
@JSONField(name = "SubsidyType")
private int subsidyType;
/**
* 补贴金额
*/
@JSONField(name = "Amount")
private BigDecimal amount;
/**
* 发放时间
*/
@JSONField(name = "SubsidyTime")
private String subsidyTime;
/**
* 发放单位
*/
@JSONField(name = "Department")
private String Department;
/**
* 政策文件
*/
@JSONField(name = "Papers")
private String Papers;
}

View File

@@ -289,6 +289,14 @@ public interface ThirdPartyPlatformService extends InitializingBean {
throw new UnsupportedOperationException("This method is not yet implemented");
}
/**
* 查询充电事故信息
* query_accident_info
*/
default Map<String, String> queryAccidentInfo(QueryStationInfoDTO dto) {
throw new UnsupportedOperationException("This method is not yet implemented");
}
// =================================================================================== //
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ 由对方平台实现此接口,我方平台调用的通知接口 ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ //

View File

@@ -376,7 +376,7 @@ public class JiLinPlatformServiceImpl implements ThirdPartyPlatformService {
.electricityType(Constants.one) //1商业用电 2普通工业用电 3大工业用电 4其他用电
.businessExpandType(Constants.one)
.videoMonitor(Constants.zero)
.equipmentOwnerName(Constants.Equipment_Owner_Name)
.equipmentOwnerName("通榆县公路客运总站(通榆县开通客运服务有限公司)")
.supplyType(Constants.one)
.build();
@@ -1587,7 +1587,7 @@ public class JiLinPlatformServiceImpl implements ThirdPartyPlatformService {
* @param dto
* @return
*/
@Override
/* @Override
public Map<String, String> queryParkingLock(QueryParkingLockDTO dto) {
JSONObject result = new JSONObject();
ThirdPartySecretInfoVO thirdPartySecretInfoVO = getJiLinSecretInfo();
@@ -1618,6 +1618,47 @@ public class JiLinPlatformServiceImpl implements ThirdPartyPlatformService {
} finally {
return ThirdPartyPlatformUtils.generateResultMap(result, thirdPartySecretInfoVO);
}
}*/
/**
* 查询补贴发放信息
* @param dto
* @return
*/
@Override
public Map<String,String> querySubsidyGrantInfo (QueryStationInfoDTO dto){
int pageNo = dto.getPageNo()== null? 1 : dto.getPageNo();
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();
ThirdPartySecretInfoVO thirdPartySecretInfoVO = getJiLinSecretInfo();
JSONObject result = new JSONObject();
List<SubsidyGrantInfo> subsidyGrantInfos = new ArrayList<>();
result.put("PageNo", pageNo);
result.put("PageSize", pageSize);
result.put("ItemSize", 0);
result.put("SubsidyGrantInfos", subsidyGrantInfos);
return ThirdPartyPlatformUtils.generateResultMap(result, thirdPartySecretInfoVO);
}
@Override
public Map<String,String> queryAccidentInfo (QueryStationInfoDTO dto){
int pageNo = dto.getPageNo()== null? 1 : dto.getPageNo();
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();
ThirdPartySecretInfoVO thirdPartySecretInfoVO = getJiLinSecretInfo();
JSONObject result = new JSONObject();
List<EquipmentAccidentInfo> equipmentAccidentInfos = new ArrayList<>();
result.put("PageNo", pageNo);
result.put("PageSize", pageSize);
result.put("ItemSize", 0);
result.put("EquipmentAccidentInfo", equipmentAccidentInfos);
return ThirdPartyPlatformUtils.generateResultMap(result, thirdPartySecretInfoVO);
}