From ec2242bc351a535c61619cfed97c08d68e062e00 Mon Sep 17 00:00:00 2001 From: wr <1754607820@qq.com> Date: Thu, 16 Jan 2025 08:52:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../njcn/gather/device/script/util/ScriptDtlsDesc.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/device/src/main/java/com/njcn/gather/device/script/util/ScriptDtlsDesc.java b/device/src/main/java/com/njcn/gather/device/script/util/ScriptDtlsDesc.java index 0dc1cc69..53913c2f 100644 --- a/device/src/main/java/com/njcn/gather/device/script/util/ScriptDtlsDesc.java +++ b/device/src/main/java/com/njcn/gather/device/script/util/ScriptDtlsDesc.java @@ -17,8 +17,8 @@ import java.util.stream.Collectors; */ public class ScriptDtlsDesc { public static StringBuffer getStringBuffer(List scriptDtlIndex, Boolean isValueType) { - if(ObjectUtil.isNull(isValueType)){ - isValueType=false; + if (ObjectUtil.isNull(isValueType)) { + isValueType = false; } StringBuffer buffer = new StringBuffer(); buffer.append("输入:"); @@ -41,7 +41,11 @@ public class ScriptDtlsDesc { .collect(Collectors.toList()); if (CollUtil.isNotEmpty(values)) { for (PqScriptDtls dtls : values) { - buffer.append(prefix + dtls.getPhase().toLowerCase() + "=" + dtls.getValue() + unit); + if ("Freq".equals(valueType)) { + buffer.append(prefix + "=" + dtls.getValue() + unit); + } else { + buffer.append(prefix + dtls.getPhase().toLowerCase() + "=" + dtls.getValue() + unit); + } if (suffix != null) { buffer.append("," + suffix + dtls.getAngle() + "° "); } else {