feat(REQ-4624) - 兼容一些表单默认内容的处理

This commit is contained in:
wangli 2025-07-30 16:34:36 +08:00
parent 86f7f2ba0b
commit 7c5c21fbbd

View File

@ -323,6 +323,7 @@ public class CustomGetFormInstanceModelCmd extends GetFormInstanceModelCmd {
}
} else if (FormFieldTypes.UPLOAD.equals(sf.getType())
|| FORM_FIELD_TYPE_IMAGE.equals(sf.getType())) {
if (StringUtils.hasText(String.valueOf(rows.get(0).get(sf.getId())))) {
if (rows.get(0).containsKey(sf.getId())) {
try {
@ -339,6 +340,7 @@ public class CustomGetFormInstanceModelCmd extends GetFormInstanceModelCmd {
}
}
}
});
} else {
// 根据传入的表单自定义组件数据构建表单模型Field 是二维数组一维用于行二维用于列