mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-30 15:16:41 +08:00
调整ObjectNode.put警告
This commit is contained in:
parent
1f7d8b52af
commit
69ea22527b
@ -173,11 +173,11 @@ public class ActModelServiceImpl implements IActModelService {
|
|||||||
BpmnModel bpmnModel = new BpmnXMLConverter().convertToBpmnModel(xtr);
|
BpmnModel bpmnModel = new BpmnXMLConverter().convertToBpmnModel(xtr);
|
||||||
BpmnJsonConverter bpmnJsonConverter = new BpmnJsonConverter();
|
BpmnJsonConverter bpmnJsonConverter = new BpmnJsonConverter();
|
||||||
ObjectNode jsonNodes = bpmnJsonConverter.convertToJson(bpmnModel);
|
ObjectNode jsonNodes = bpmnJsonConverter.convertToJson(bpmnModel);
|
||||||
modelNode.put("model", jsonNodes);
|
modelNode.set("model", jsonNodes);
|
||||||
} else {
|
} else {
|
||||||
ObjectNode editorJsonNode = (ObjectNode) objectMapper.readTree(
|
ObjectNode editorJsonNode = (ObjectNode) objectMapper.readTree(
|
||||||
new String(repositoryService.getModelEditorSource(model.getId()), StandardCharsets.UTF_8));
|
new String(repositoryService.getModelEditorSource(model.getId()), StandardCharsets.UTF_8));
|
||||||
modelNode.put("model", editorJsonNode);
|
modelNode.set("model", editorJsonNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user