|
|
@ -30,13 +30,12 @@ public class TitrationAreaMoveHeatAreaCommand extends BaseCommandHandler { |
|
|
|
|
|
|
|
@Override |
|
|
|
public CompletableFuture<Void> handle(CommandDTO commandDTO) { |
|
|
|
String heatModuleCodeStr = commandDTO.getStringParam("heatModuleCode"); |
|
|
|
String titrationModuleCodeStr = commandDTO.getStringParam("titrationModuleCode"); |
|
|
|
if (StringUtils.isEmpty(heatModuleCodeStr) || StringUtils.isEmpty(titrationModuleCodeStr)) { |
|
|
|
if (StringUtils.isEmpty(titrationModuleCodeStr)) { |
|
|
|
throw new AppException(ResultCode.INVALID_PARAMETER);//参数缺失 |
|
|
|
} |
|
|
|
MultipleModuleCode titrationModuleCode = MultipleModuleCode.valueOf(titrationModuleCodeStr); |
|
|
|
MultipleModuleCode heatModuleCode = MultipleModuleCode.valueOf(heatModuleCodeStr); |
|
|
|
MultipleModuleCode heatModuleCode = MultipleModuleCode.valueOf(titrationModuleCodeStr); |
|
|
|
boolean tubeExist = switch (titrationModuleCode) { //首先滴定位是否存在试管 |
|
|
|
case MultipleModuleCode.MODULE_1 -> deviceState.isTrayExist1(); |
|
|
|
case MultipleModuleCode.MODULE_2 -> deviceState.isTrayExist2(); |
|
|
|