Commit 15e78e4a authored by 刘凡's avatar 刘凡

*)修改图片放入附件中

parent b809ee89
...@@ -388,6 +388,7 @@ public class DPSubServiceImpl { ...@@ -388,6 +388,7 @@ public class DPSubServiceImpl {
JSONArray attachmentUploadDatas = matinfo.getJSONArray("datas"); JSONArray attachmentUploadDatas = matinfo.getJSONArray("datas");
if (!ValidationUtil.isEmpty(value)) { if (!ValidationUtil.isEmpty(value)) {
JSONObject attachmentUploadDatasObj = new JSONObject(); JSONObject attachmentUploadDatasObj = new JSONObject();
attachmentUploadDatasObj.put("label", visualParams.getString("label"));
attachmentUploadDatasObj.put("value", value); attachmentUploadDatasObj.put("value", value);
attachmentUploadDatasObj.put("type", "img"); attachmentUploadDatasObj.put("type", "img");
attachmentUploadDatas.add(attachmentUploadDatasObj); attachmentUploadDatas.add(attachmentUploadDatasObj);
...@@ -434,7 +435,7 @@ public class DPSubServiceImpl { ...@@ -434,7 +435,7 @@ public class DPSubServiceImpl {
} }
} }
} }
if (!"upload".equals(xObj.getString("componentKey")) || !"attachmentUpload".equals(xObj.getString("componentKey"))){ if (!("upload".equals(xObj.getString("componentKey")) || "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