|
@ -46,7 +46,7 @@ public class LiquidReduceCommand extends BaseCommandHandler { |
|
|
} |
|
|
} |
|
|
JSONArray jsonArray = cmdDTO.getJSONArrayParam("columns");//获取参数 |
|
|
JSONArray jsonArray = cmdDTO.getJSONArrayParam("columns");//获取参数 |
|
|
Double height=cmdDTO.getDoubleParam("height");//抽液针头下降高度 |
|
|
Double height=cmdDTO.getDoubleParam("height");//抽液针头下降高度 |
|
|
if(height>50){ |
|
|
|
|
|
|
|
|
if(height>54){ |
|
|
throw new AppException(ResultCode.PARAMETER_OUT_OF_RANGE); |
|
|
throw new AppException(ResultCode.PARAMETER_OUT_OF_RANGE); |
|
|
} |
|
|
} |
|
|
Assert.isTrue(!jsonArray.isEmpty(), () -> new AppException(ResultCode.INVALID_PARAMETER));//参数校验 |
|
|
Assert.isTrue(!jsonArray.isEmpty(), () -> new AppException(ResultCode.INVALID_PARAMETER));//参数校验 |
|
|