Commit 1c6d7e12 authored by 廖旭伟's avatar 廖旭伟

修改Api接口提交的表单数据无法回写的bug

parent daddab97
...@@ -562,6 +562,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap ...@@ -562,6 +562,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
JSONObject jsonObject = formList.getJSONObject(j); JSONObject jsonObject = formList.getJSONObject(j);
String key = jsonObject.getString("id"); String key = jsonObject.getString("id");
json.put(key,formMap.get(key)); json.put(key,formMap.get(key));
jsonObject.put("value",formMap.get(key));
} }
entity.setFormTemplate(formTemplate.toJSONString()); entity.setFormTemplate(formTemplate.toJSONString());
try { try {
...@@ -628,6 +629,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap ...@@ -628,6 +629,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
JSONObject jsonObject = formList.getJSONObject(j); JSONObject jsonObject = formList.getJSONObject(j);
String key = jsonObject.getString("id"); String key = jsonObject.getString("id");
json.put(key,formMap.get(key)); json.put(key,formMap.get(key));
jsonObject.put("value",formMap.get(key));
} }
entity.setFormTemplate(formTemplate.toJSONString()); entity.setFormTemplate(formTemplate.toJSONString());
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment