|
|
@@ -115,7 +115,11 @@ public class SceneDrawServiceImpl implements ISceneDrawService {
|
|
|
jsonObject.put("createTime", Calendar.getInstance().getTimeInMillis() + i++);
|
|
|
String type = jsonObject.getString("type");
|
|
|
if(StrUtil.isNotEmpty(type) && type.equalsIgnoreCase("ai")){
|
|
|
- aiList.add(jsonObject);
|
|
|
+ JSONObject item = new JSONObject();
|
|
|
+ item.put("sid", jsonObject.getString("sid"));
|
|
|
+ item.put("edit", CommonStatus.YES.code());
|
|
|
+ item.put("editJson", jsonObject);
|
|
|
+ aiList.add(item);
|
|
|
}else{
|
|
|
addOrUpdateMap.put(jsonObject.getString("sid"), JSON.toJSONString(jsonObject));
|
|
|
}
|
|
|
@@ -131,7 +135,7 @@ public class SceneDrawServiceImpl implements ISceneDrawService {
|
|
|
JSONObject param = new JSONObject();
|
|
|
param.put("num", num);
|
|
|
param.put("list", aiList);
|
|
|
- shapesHttpClient.shapesUpdateByIds(fdServiceHost, param,new CommonSuccessCallback(), new CommonErrorCallback());
|
|
|
+ shapesHttpClient.shapesUpdateBySids(fdServiceHost, param,new CommonSuccessCallback(), new CommonErrorCallback());
|
|
|
//处理ai识别数据-----------end
|
|
|
|
|
|
}
|