Browse Source

抽液体深度限制

master
王梦远 2 months ago
parent
commit
4281dee9bf
  1. 2
      src/main/java/com/iflytop/sgs/app/cmd/control/LiquidReduceCommand.java

2
src/main/java/com/iflytop/sgs/app/cmd/control/LiquidReduceCommand.java

@ -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));//参数校验

Loading…
Cancel
Save