This commit is contained in:
wr
2025-01-16 08:52:44 +08:00
parent d58e957dae
commit ec2242bc35

View File

@@ -17,8 +17,8 @@ import java.util.stream.Collectors;
*/ */
public class ScriptDtlsDesc { public class ScriptDtlsDesc {
public static StringBuffer getStringBuffer(List<PqScriptDtls> scriptDtlIndex, Boolean isValueType) { public static StringBuffer getStringBuffer(List<PqScriptDtls> scriptDtlIndex, Boolean isValueType) {
if(ObjectUtil.isNull(isValueType)){ if (ObjectUtil.isNull(isValueType)) {
isValueType=false; isValueType = false;
} }
StringBuffer buffer = new StringBuffer(); StringBuffer buffer = new StringBuffer();
buffer.append("输入:"); buffer.append("输入:");
@@ -41,7 +41,11 @@ public class ScriptDtlsDesc {
.collect(Collectors.toList()); .collect(Collectors.toList());
if (CollUtil.isNotEmpty(values)) { if (CollUtil.isNotEmpty(values)) {
for (PqScriptDtls dtls : 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) { if (suffix != null) {
buffer.append("," + suffix + dtls.getAngle() + "° "); buffer.append("," + suffix + dtls.getAngle() + "° ");
} else { } else {