update 高德

This commit is contained in:
2023-06-27 09:14:30 +08:00
parent cf741ac3ce
commit 1f7c1f07cd
7 changed files with 51 additions and 15 deletions

View File

@@ -4,6 +4,7 @@ import com.google.common.collect.Lists;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.domain.ykcCommond.*;
import com.jsowell.pile.dto.RemoteAccountBalanceUpdateDTO;
import com.jsowell.pile.dto.UpdateFirmwareDTO;
import com.jsowell.pile.service.YKCPushCommandService;
import com.jsowell.pile.domain.PileBillingRelation;
import com.jsowell.pile.domain.PileBillingTemplate;
@@ -185,12 +186,13 @@ public class PileRemoteService {
/**
* 远程更新
*
* @param pileSns 前台传的桩号集合
*/
public void updateFirmware(List<String> pileSns) {
public void updateFirmware(UpdateFirmwareDTO dto) {
//
UpdateFirmwareCommand command = UpdateFirmwareCommand.builder().pileSnList(pileSns).build();
UpdateFirmwareCommand command = UpdateFirmwareCommand.builder()
.pileSnList(dto.getPileSns())
.filePath(dto.getFilePath())
.build();
ykcPushCommandService.pushUpdateFileCommand(command);
}