update远程升级接口

This commit is contained in:
2023-07-24 16:44:03 +08:00
parent 7dce806203
commit a0fc6ccdf3
2 changed files with 5 additions and 8 deletions

View File

@@ -192,9 +192,6 @@ public class PileRemoteService {
* 远程更新
*/
public void updateFirmware(UpdateFirmwareDTO dto) {
if (StringUtils.isBlank(dto.getFirmwareId())) {
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
}
PileFirmwareInfo pileFirmwareInfo = pileFirmwareInfoService.selectPileFirmwareInfoById(Long.valueOf(dto.getFirmwareId()));
if (pileFirmwareInfo == null) {
throw new BusinessException(ReturnCodeEnum.CODE_FIRMWARE_NOT_FOUND_ERROR);