微调
This commit is contained in:
@@ -17,8 +17,8 @@ import java.util.stream.Collectors;
|
||||
*/
|
||||
public class ScriptDtlsDesc {
|
||||
public static StringBuffer getStringBuffer(List<PqScriptDtls> 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 {
|
||||
|
||||
Reference in New Issue
Block a user