|
@ -2,7 +2,7 @@ package com.iflytop.gd.app.service.device; |
|
|
|
|
|
|
|
|
import com.iflytop.gd.app.model.bo.status.SelfTestState; |
|
|
import com.iflytop.gd.app.model.bo.status.SelfTestState; |
|
|
import com.iflytop.gd.app.model.bo.status.device.HeatModuleState; |
|
|
import com.iflytop.gd.app.model.bo.status.device.HeatModuleState; |
|
|
import com.iflytop.gd.app.model.vo.GetRequireOutTray; |
|
|
|
|
|
|
|
|
import com.iflytop.gd.app.model.vo.GetRequireOutTrayVO; |
|
|
import lombok.Getter; |
|
|
import lombok.Getter; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
@ -25,11 +25,12 @@ public class SelfTestService { |
|
|
/** |
|
|
/** |
|
|
* 是否存在需要移除的托盘 |
|
|
* 是否存在需要移除的托盘 |
|
|
*/ |
|
|
*/ |
|
|
public List<GetRequireOutTray> getRequireOutTray() { |
|
|
|
|
|
List<GetRequireOutTray> getRequireOutTrayList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
public List<GetRequireOutTrayVO> getRequireOutTray() { |
|
|
|
|
|
List<GetRequireOutTrayVO> getRequireOutTrayList = new ArrayList<>(); |
|
|
List<HeatModuleState> heatModuleStateList = deviceStateService.getDeviceState().getHeatModule(); |
|
|
List<HeatModuleState> heatModuleStateList = deviceStateService.getDeviceState().getHeatModule(); |
|
|
for (HeatModuleState heatModuleState : heatModuleStateList) { |
|
|
for (HeatModuleState heatModuleState : heatModuleStateList) { |
|
|
getRequireOutTrayList.add(new GetRequireOutTray(heatModuleState.getModuleCode(),heatModuleState.getTrayStatus() == 1,heatModuleState.isCapExist())); |
|
|
|
|
|
|
|
|
//TODO 只获取存在托盘的 |
|
|
|
|
|
getRequireOutTrayList.add(new GetRequireOutTrayVO(heatModuleState.getModuleCode(),heatModuleState.getTrayStatus() == 1,heatModuleState.isCapExist())); |
|
|
} |
|
|
} |
|
|
return getRequireOutTrayList; |
|
|
return getRequireOutTrayList; |
|
|
} |
|
|
} |
|
|