Browse Source

获取一个空闲加热区 bug

master
王梦远 2 months ago
parent
commit
0c2650ebac
  1. 4
      src/main/java/com/iflytop/sgs/app/service/device/module/HeatModuleService.java

4
src/main/java/com/iflytop/sgs/app/service/device/module/HeatModuleService.java

@ -17,6 +17,8 @@ import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 加热模块
*/
@ -136,6 +138,8 @@ public class HeatModuleService {
* 获取一个空闲加热区
*/
public HeatModuleState getIdleHeatModule() {
//List<HeatModuleState> heatModuleStateList=deviceStateService.getDeviceState().getHeatModule();
//heatModuleStateList.removeIf(heatModuleState -> heatModuleState.getModuleCode().equals(HeatModuleCode.heat_module_04));
for (HeatModuleState heatModuleState : deviceStateService.getDeviceState().getHeatModule()) {
boolean flag = true;
for (TrayState trayState : deviceStateService.getDeviceState().getTrays()) {

Loading…
Cancel
Save