|
|
@ -9,6 +9,7 @@ import com.iflytop.sgs.app.service.device.DeviceStateService; |
|
|
|
import com.iflytop.sgs.app.service.device.module.HeatModuleService; |
|
|
|
import com.iflytop.sgs.common.annotation.CommandMapping; |
|
|
|
import com.iflytop.sgs.common.enums.HeatModuleCode; |
|
|
|
import com.iflytop.sgs.common.enums.HeatingType; |
|
|
|
import com.iflytop.sgs.common.exception.AppException; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
@ -47,7 +48,7 @@ public class AnnealStartCommand extends BaseCommandHandler { |
|
|
|
//开启退火 |
|
|
|
heatModuleService.heatRodOpen(cmdDTO.getCommandId(), cmdDTO.getCommand(), heatModuleId, temperature); |
|
|
|
//设置加热区状态 正在退火 |
|
|
|
deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleId).setAnnealing(true); |
|
|
|
deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleId).setHeatingType(HeatingType.annealing); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|