You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private UUID designId;
private LinkedHashMap data;
public UUID getDesignId() {
return designId;
}
public void setDesignId(UUID designId) {
this.designId = designId;
}
public LinkedHashMap getData(){
return data;
}
public void setData(LinkedHashMap data) {
this.data = data;
}
DTO 如下
@ApiModel(value = "表单数据对象", description = "表单填写后的数据对象")
public class FormDataDto {
@ApiModelProperty(value = "表单数据ID")
private UUID id;
@ApiModelProperty(value = "表单数据内容")
private LinkedHashMap data;
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public LinkedHashMap getData() {
return data;
}
public void setData(LinkedHashMap data) {
this.data = data;
}
}
生成的代码
@Override
public final gaea.workflow.dto.FormDataDto asFormDataDto(gaea.workflow.domain.core.FormDataDomain in) {
gaea.workflow.dto.FormDataDto out = null;
if (in != null) {
out = new gaea.workflow.dto.FormDataDto();
if (in.getData() != null) {
java.util.LinkedHashMap adataTmpMap = new java.util.LinkedHashMap();
out.setData(adataTmpMap);
for (java.util.Map.Entry<K,V> adataEntry : in.getData().entrySet()) {
K adataTmpKey = null;
}
}
else {
out.setData(null);
}
out.setId(in.getId());
}
return out;
}
The text was updated successfully, but these errors were encountered:
我有一个 LinkedHashMap 如下:
DTO 如下
生成的代码
The text was updated successfully, but these errors were encountered: