|
|
@ -33,15 +33,15 @@ public class DryStartCommand extends BaseCommandHandler { |
|
|
|
//获取当前加热区 |
|
|
|
String heatId = heatIdJsonArray.getStr(i); |
|
|
|
HeatModuleCode heatModuleId = HeatModuleCode.valueOf(heatId); |
|
|
|
HeatModuleState heatModuleState = deviceStateService.getHeatModuleState(heatModuleId); |
|
|
|
HeatModuleState heatModuleState = deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleId); |
|
|
|
//设置加热区目标温度 |
|
|
|
deviceStateService.setHeatModuleStateTargetTemperature(heatModuleId, heatModuleState.getDryTemperature()); |
|
|
|
deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleId).setTargetTemperature(heatModuleState.getDryTemperature()); |
|
|
|
//从系统状态中获取指定加热区设定的烘干温度数值 |
|
|
|
double temperature = deviceStateService.getHeatModuleState(heatModuleId).getDryTemperature(); |
|
|
|
double temperature = deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleId).getDryTemperature(); |
|
|
|
//开启退火 |
|
|
|
deviceCommandUtilService.heatRodOpen(cmdDTO.getCommandId(), cmdDTO.getCommand(), heatModuleId, temperature); |
|
|
|
//设置加热区状态 正在烘干 |
|
|
|
deviceStateService.setHeatModuleStateAnnealing(heatModuleId, true); |
|
|
|
deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleId).setDrying(true); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|