|
|
@ -339,7 +339,7 @@ public class ChannelCtrlService { |
|
|
|
throw new IllegalArgumentException("Formulation 或其字段 volume/revolutions 不能为空"); |
|
|
|
} |
|
|
|
Integer pumpConversionFactor = systemConfigService.getValueByKeyToInteger(SystemConfigKey.PUMP_CONVERSION_FACTOR); |
|
|
|
double deltaRevolutions = (afterPosition - beforePosition) / pumpConversionFactor; |
|
|
|
int deltaRevolutions = (int) (((afterPosition - beforePosition) / pumpConversionFactor)); |
|
|
|
double targetVolume = formulation.getVolume(); |
|
|
|
double targetRevs = formulation.getRevolutions(); |
|
|
|
if (targetRevs == 0) { |
|
|
|