mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-06-22 16:09:40 +08:00
新增刷新按钮
This commit is contained in:
@@ -82,7 +82,7 @@ public class GunController extends BaseController {
|
||||
// 通过AttributeService获取充电枪运行状态
|
||||
ListenableFuture<Optional<AttributeKvEntry>> attributeFuture =
|
||||
attributeService.find(gun.getId(), AttrKeyEnum.GUN_RUN_STATUS.getCode());
|
||||
|
||||
|
||||
Optional<AttributeKvEntry> attributeResult = attributeFuture.get();
|
||||
String status = null;
|
||||
if (attributeResult.isPresent()) {
|
||||
|
||||
@@ -94,7 +94,7 @@ public class PileController extends BaseController {
|
||||
// 通过AttributeService获取充电桩状态
|
||||
ListenableFuture<Optional<AttributeKvEntry>> attributeFuture =
|
||||
attributeService.find(pile.getId(), AttrKeyEnum.STATUS.getCode());
|
||||
|
||||
|
||||
Optional<AttributeKvEntry> attributeResult = attributeFuture.get();
|
||||
String status = null;
|
||||
if (attributeResult.isPresent()) {
|
||||
|
||||
@@ -23,7 +23,7 @@ import sanbing.jcpp.proto.gen.DownlinkProto.*;
|
||||
|
||||
/**
|
||||
* RPC控制器 - 通用化的充电桩下行指令接口
|
||||
*
|
||||
*
|
||||
* @author 九筒
|
||||
*/
|
||||
@RestController
|
||||
@@ -156,7 +156,7 @@ public class RpcController extends BaseController {
|
||||
/**
|
||||
* 处理离线卡余额更新指令
|
||||
*/
|
||||
private void handleOfflineCardBalanceUpdate(JsonNode parameter) {
|
||||
private void handleOfflineCardBalanceUpdate(JsonNode parameter) throws Exception {
|
||||
OfflineCardBalanceUpdateRequest request = JacksonUtil.fromJson(parameter, OfflineCardBalanceUpdateRequest.class);
|
||||
pileProtocolService.offlineCardBalanceUpdateRequest(request);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Data;
|
||||
|
||||
/**
|
||||
* 重启充电桩DTO
|
||||
*
|
||||
*
|
||||
* @author 九筒
|
||||
*/
|
||||
@Data
|
||||
|
||||
@@ -13,7 +13,7 @@ import sanbing.jcpp.proto.gen.DownlinkProto.SetPricingRequest;
|
||||
|
||||
/**
|
||||
* 设置计费策略DTO
|
||||
*
|
||||
*
|
||||
* @author 九筒
|
||||
*/
|
||||
@Data
|
||||
|
||||
@@ -14,7 +14,7 @@ import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 启动充电DTO
|
||||
*
|
||||
*
|
||||
* @author 九筒
|
||||
*/
|
||||
@Data
|
||||
|
||||
@@ -11,7 +11,7 @@ import lombok.Data;
|
||||
|
||||
/**
|
||||
* 停止充电DTO
|
||||
*
|
||||
*
|
||||
* @author 九筒
|
||||
*/
|
||||
@Data
|
||||
|
||||
@@ -14,7 +14,7 @@ import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 时间同步DTO
|
||||
*
|
||||
*
|
||||
* @author 九筒
|
||||
*/
|
||||
@Data
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Data;
|
||||
|
||||
/**
|
||||
* RPC请求参数
|
||||
*
|
||||
*
|
||||
* @author 九筒
|
||||
*/
|
||||
@Data
|
||||
|
||||
@@ -198,7 +198,7 @@ public class DefaultGunService implements GunService {
|
||||
// 保存充电枪状态到属性表
|
||||
saveGunStatusChange(gun.getId(), dbStatus.name(), ts);
|
||||
|
||||
log.info("充电枪状态更新成功: 桩编码={}, 枪编号={}, 原状态={}, 新状态={}",
|
||||
log.info("充电枪状态更新成功: 桩编码={}, 枪编号={}, 原状态={}, 新状态={}",
|
||||
pileCode, gunNo, currentStatus, dbStatus);
|
||||
|
||||
// 根据充电枪状态判断是否需要更新充电桩状态
|
||||
|
||||
@@ -630,7 +630,7 @@ public class DefaultPileProtocolService implements PileProtocolService {
|
||||
String additionalInfo = bmsHandshakeProto.getAdditionalInfo();
|
||||
|
||||
log.info("BMS充电握手信息: 交易流水号: {}, 桩编码: {}, 枪号: {}, 车辆VIN: {}, BMS协议版本: {}, " +
|
||||
"电池类型: {}, 电池容量: {}Ah, 附加信息: {}",
|
||||
"电池类型: {}, 电池容量: {}Ah, 附加信息: {}",
|
||||
tradeNo, pileCode, gunNo, carVinCode, bmsProtocolVersion,
|
||||
bmsBatteryType, bmsPowerCapacity, additionalInfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user