mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
充电桩远程升级
This commit is contained in:
@@ -11,6 +11,6 @@ import java.util.List;
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class UpdateFileCommand {
|
||||
public class UpdateFirmwareCommand {
|
||||
List<String> pileSnList;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ public interface YKCPushCommandService {
|
||||
* 发送远程更新命令
|
||||
* @param command
|
||||
*/
|
||||
void pushUpdateFileCommand(UpdateFileCommand command);
|
||||
void pushUpdateFileCommand(UpdateFirmwareCommand command);
|
||||
|
||||
/**
|
||||
* 发送充电桩设置命令
|
||||
|
||||
@@ -69,7 +69,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
||||
// 通过桩编号获取channel
|
||||
Channel channel = PileChannelEntity.getChannelByPileSn(pileSn);
|
||||
if (Objects.isNull(channel)) {
|
||||
log.error("push命令失败, 桩号:{}无法获取到长连接, 请检查充电桩连接状态!", pileSn);
|
||||
log.error("push命令[{}]失败, 桩号:{}无法获取到长连接, 请检查充电桩连接状态!", ((YKCFrameTypeCode) frameTypeCode).getValue(), pileSn);
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
@@ -284,7 +284,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void pushUpdateFileCommand(UpdateFileCommand command) {
|
||||
public void pushUpdateFileCommand(UpdateFirmwareCommand command) {
|
||||
List<String> pileSns = command.getPileSnList();
|
||||
if (CollectionUtils.isEmpty(pileSns)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user