|
|
@ -6,6 +6,8 @@ import com.iflytop.sgs.app.model.vo.SetTrayTubeVO; |
|
|
|
import com.iflytop.sgs.app.service.device.DeviceSensorService; |
|
|
|
import com.iflytop.sgs.app.service.device.DeviceStateService; |
|
|
|
import com.iflytop.sgs.common.enums.DeviceSensorCode; |
|
|
|
import com.iflytop.sgs.common.exception.AppException; |
|
|
|
import com.iflytop.sgs.common.result.ResultCode; |
|
|
|
import com.iflytop.sgs.hardware.exception.HardwareException; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springframework.beans.factory.ObjectProvider; |
|
|
@ -43,8 +45,9 @@ public class TrayService { |
|
|
|
deviceStateService.getDeviceState().getTrays().add(trayState); |
|
|
|
deviceStateService.getDeviceState().getSolutionModule().setFeedAreaTrayStatus(true); |
|
|
|
return trayState; |
|
|
|
} else { |
|
|
|
throw new AppException(ResultCode.FEED_AREA_EXIST_TRAY); |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|