修改执行参数.

This commit is contained in:
lijiahang
2024-07-10 11:46:07 +08:00
parent 873e910eb1
commit 04bae45955
6 changed files with 30 additions and 27 deletions

View File

@@ -20,16 +20,13 @@ import lombok.NoArgsConstructor;
@Schema(name = "ExecParameterSchemaDTO", description = "命令执行参数 schema 对象")
public class ExecParameterSchemaDTO {
@Schema(description = "参数名")
@Schema(description = "参数名")
private String name;
@Schema(description = "参数描述")
private String desc;
@Schema(description = "默认")
private Object defaultValue;
@Schema(description = "")
@Schema(description = "参数")
private Object value;
}

View File

@@ -335,9 +335,6 @@ public class ExecCommandServiceImpl implements ExecCommandService {
.collect(Collectors.toMap(ExecParameterSchemaDTO::getName,
s -> {
Object value = s.getValue();
if (value == null) {
value = s.getDefaultValue();
}
if (value == null) {
value = Const.EMPTY;
}