|
|
@@ -888,11 +888,11 @@ public class FormExecuteServiceImpl implements IFormExecuteService {
|
|
|
|
|
|
@Transactional
|
|
|
public Long insertFormData(Map<String, Object> formData, FormTemplate template) {
|
|
|
- for (Map.Entry<String, Object> entry : formData.entrySet()) {
|
|
|
- if (entry.getValue().toString().isEmpty()) {
|
|
|
- entry.setValue(null);
|
|
|
- }
|
|
|
- }
|
|
|
+// for (Map.Entry<String, Object> entry : formData.entrySet()) {
|
|
|
+// if (entry.getValue().toString().isEmpty()) {
|
|
|
+// entry.setValue(null);
|
|
|
+// }
|
|
|
+// }
|
|
|
String formJson = template.getFormJson();
|
|
|
//自定义表单配置
|
|
|
FormDesignConfig formDesignConfig = JSONUtil.toBean(formJson, FormDesignConfig.class);
|
|
|
@@ -1011,11 +1011,11 @@ public class FormExecuteServiceImpl implements IFormExecuteService {
|
|
|
|
|
|
// 处理字段值
|
|
|
formData = handleFormDataForSave(formData, formDesignConfig, tableName, null);
|
|
|
- for (Map.Entry<String, Object> entry : formData.entrySet()) {
|
|
|
- if (entry.getValue().toString().isEmpty()) {
|
|
|
- entry.setValue(null);
|
|
|
- }
|
|
|
- }
|
|
|
+// for (Map.Entry<String, Object> entry : formData.entrySet()) {
|
|
|
+// if (entry.getValue().toString().isEmpty()) {
|
|
|
+// entry.setValue(null);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
//此时的formData 已经是剔除了子表单数据了
|
|
|
entity.putAll(formData);
|