uploadFirmware 上传固件接口

This commit is contained in:
Guoqs
2024-05-17 17:07:19 +08:00
parent dcb46f31b8
commit 6bc042681f
8 changed files with 57 additions and 9 deletions

View File

@@ -18,6 +18,7 @@ import org.apache.commons.collections4.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
@@ -42,6 +43,12 @@ public class PileRemoteService {
@Autowired
private RedisCache redisCache;
@Value("${remoteUpdate.server}")
private String serverAddress;
@Value("${remoteUpdate.port}")
private int port;
/**
* 获取充电桩实时数据信息
*
@@ -206,6 +213,8 @@ public class PileRemoteService {
}
UpdateFirmwareCommand command = UpdateFirmwareCommand.builder()
.pileSnList(dto.getPileSns())
.serverAddress(serverAddress)
.port(port)
.filePath(pileFirmwareInfo.getFilePath())
.build();
ykcPushCommandService.pushUpdateFileCommand(command);