From 27cdb966fa4666ac18fcdab79d217fe549f7223c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B?= <1063331231@qq.com> Date: Fri, 13 Jun 2025 18:06:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E6=B6=B2=E7=9A=84=E4=B8=8B=E9=99=8D?= =?UTF-8?q?=E6=9C=80=E5=A4=A7=E9=AB=98=E5=BA=A651=E6=94=B9=E4=B8=BA55?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/iflytop/sgs/app/cmd/control/CleanStartCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/iflytop/sgs/app/cmd/control/CleanStartCommand.java b/src/main/java/com/iflytop/sgs/app/cmd/control/CleanStartCommand.java index 45c9afc..64f4139 100644 --- a/src/main/java/com/iflytop/sgs/app/cmd/control/CleanStartCommand.java +++ b/src/main/java/com/iflytop/sgs/app/cmd/control/CleanStartCommand.java @@ -53,7 +53,7 @@ public class CleanStartCommand extends BaseCommandHandler { Double height = cmdDTO.getDoubleParam("height");//针头下降高度 Double volume = cmdDTO.getDoubleParam("volume");//加水的量 Integer maxCycles = systemConfigService.getSystemConfigIntegerByCode(SystemConfigCode.cycle_clean_max);//获取最大清洁次数配置 - Assert.isTrue(cycle != null && cycle > 0 && cycle < maxCycles && height < 51 && volume != null, () -> new AppException(ResultCode.INVALID_PARAMETER));//清洁次数不为空 切清洁次数大于0 + Assert.isTrue(cycle != null && cycle > 0 && cycle < maxCycles && height < 55 && volume != null, () -> new AppException(ResultCode.INVALID_PARAMETER));//清洁次数不为空 切清洁次数大于0 Solutions solutions = solutionsService.getByCode(SolutionCode.water.name()); double waterScale = systemConfigService.getSystemConfigDoubleByCode(SystemConfigCode.valueOf(solutions.getCode()));//水转换系数 double cleanWaterVolume = volume * waterScale;//清洁时加水的量