Commit 281a0187 authored by 邢磊's avatar 邢磊

*)修改逻辑

parent 49b4d153
...@@ -380,10 +380,8 @@ public class DPSubServiceImpl { ...@@ -380,10 +380,8 @@ public class DPSubServiceImpl {
JSONObject param = tab.getJSONObject("param"); JSONObject param = tab.getJSONObject("param");
jsonObject.put("type", "text"); jsonObject.put("type", "text");
jsonObject.put("value", value); jsonObject.put("value", value);
if (!ValidationUtil.isEmpty(paramFieldKeys)){ if (!ValidationUtil.isEmpty(paramFieldKeys) && ((JSONArray) paramFieldKeys).contains(fieldKey)){
if (((JSONArray) paramFieldKeys).contains(fieldKey)){ jsonObject.put("value", param.getString(fieldKey));
jsonObject.put("value", param.getString(fieldKey));
}
} else { } else {
if ("upload".equals(xObj.getString("componentKey"))) { if ("upload".equals(xObj.getString("componentKey"))) {
jsonObject.put("type", "img"); jsonObject.put("type", "img");
...@@ -431,7 +429,7 @@ public class DPSubServiceImpl { ...@@ -431,7 +429,7 @@ public class DPSubServiceImpl {
} }
} }
if (!"attachmentUpload".equals(xObj.getString("componentKey"))){ if (!"attachmentUpload".equals(xObj.getString("componentKey"))){
datas.add(jsonObject); datas.add(jsonObject);
} }
return datas; return datas;
} }
......
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