zhaowenyu
2025-11-04 f8dc33f4e24880c33a3546cd19ff5dbde15d11a8
2025-11-4 zwy 远程调试控制-增强图传开关兼容。
2 files modified
13 ■■■■■ changed files
ard-sample/src/main/java/com/ard/sample/manage/model/param/RemoteDebugParam.java 4 ●●●●● patch | view | raw | blame | history
ard-sample/src/main/java/com/ard/sample/manage/service/impl/ControlServiceImpl.java 9 ●●●●● patch | view | raw | blame | history
ard-sample/src/main/java/com/ard/sample/manage/model/param/RemoteDebugParam.java
@@ -1,5 +1,7 @@
package com.ard.sample.manage.model.param;
import com.ard.sample.manage.model.dto.LinkWorkMode;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
/**
@@ -12,4 +14,6 @@
    private Integer action;
    private Integer link_workmode;
}
ard-sample/src/main/java/com/ard/sample/manage/service/impl/ControlServiceImpl.java
@@ -69,7 +69,14 @@
            if (Objects.isNull(param)) {
                return ResponseResult.error(CommonErrorEnum.ILLEGAL_ARGUMENT);
            }
            BasicDeviceProperty basicDeviceProperty = mapper.convertValue(param.getAction(), controlMethodEnum.getClazz());
            BasicDeviceProperty basicDeviceProperty = null;
            if(serviceIdentifier.equals("sdr_workmode_switch")){
                basicDeviceProperty= mapper.convertValue(param.getLink_workmode(), controlMethodEnum.getClazz());
            }
            else
            {
                basicDeviceProperty = mapper.convertValue(param.getAction(), controlMethodEnum.getClazz());
            }
            if (!basicDeviceProperty.valid()) {
                return ResponseResult.error(CommonErrorEnum.ILLEGAL_ARGUMENT);
            }