Browse Source

参数名称使用heatId

master
王梦远 2 months ago
parent
commit
2a119373d0
  1. 6
      src/main/java/com/iflytop/sgs/app/cmd/selftest/TrayOutCommand.java

6
src/main/java/com/iflytop/sgs/app/cmd/selftest/TrayOutCommand.java

@ -41,7 +41,11 @@ public class TrayOutCommand extends BaseCommandHandler {
if (deviceStateService.getCommandMutexState().get().isTrayOut()) {
throw new AppException(ResultCode.COMMAND_ALREADY_EXECUTING);
}
String targetHeatModuleCodeStr = cmdDTO.getStringParam("heatModuleCode");
String targetHeatModuleCodeStr = cmdDTO.getStringParam("heatId");
if(targetHeatModuleCodeStr.isEmpty()){
log.error("heatModuleCode is empty:"+targetHeatModuleCodeStr);
throw new AppException(ResultCode.INVALID_PARAMETER);
}
HeatModuleCode targetHeatModuleCode = HeatModuleCode.valueOf(targetHeatModuleCodeStr);
Double doorOpenPosition = devicePositionService.getPosition(DevicePositionCode.doorOpenPosition).getDistance();//获取开门位置
Point3D targetHeatModuleTrayClawPoint3D = heatModuleService.getHeatModuleTrayClawPoint3D(targetHeatModuleCode);//获取目标加热模块托盘夹取点

Loading…
Cancel
Save