Commit 28a63118 authored by zhangyingbin's avatar zhangyingbin

设备详情接口修改

parent b0a51ab3
...@@ -243,7 +243,17 @@ public class TzsAppService { ...@@ -243,7 +243,17 @@ public class TzsAppService {
bool = false; bool = false;
} }
if(!ValidationUtil.isEmpty(map.get("fieldValue"))){ if(!ValidationUtil.isEmpty(map.get("fieldValue"))){
array.addAll(JSON.parseArray(String.valueOf(map.get("fieldValue")))); JSONArray jsonArray = JSON.parseArray(String.valueOf(map.get("fieldValue")));
JSONArray json = new JSONArray();
for(Object obj: jsonArray){
JSONObject object = JSON.parseObject(JSON.toJSONString(obj));
if(!ValidationUtil.isEmpty(object)){
object.getString("url");
object.put("url",minioPath+object.getString("url"));
json.add(object);
}
}
array.addAll(json);
} }
// 删除所有附件 // 删除所有附件
iterator.remove(); iterator.remove();
......
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