diff --git a/ProductionSystem/Untils/Tool/StepTool.cs b/ProductionSystem/Untils/Tool/StepTool.cs index 143c71f..5b64ad4 100644 --- a/ProductionSystem/Untils/Tool/StepTool.cs +++ b/ProductionSystem/Untils/Tool/StepTool.cs @@ -50,7 +50,12 @@ namespace ProductionSystem.Untils.Tool //上位机将四通阀运行到模式1,启动水泵1运行致设定转速,反馈PLC=1或2(可以/不可以测试) var ba = ModeTypeEnum.BZ1_DB; - + + if (string.IsNullOrEmpty(GetCode())) + { + return; + } + if (D1004) { var stpStep = productStepService.QueryLatestStep(ba.ToString(), EquipmentEnum.FKSTF1ZT_DB.ToString(), Program.ProductType, GetCode());