mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-30 15:16:41 +08:00
fix 修复模型导出错误
This commit is contained in:
parent
7428cd42f2
commit
9ff82940ac
@ -300,8 +300,7 @@ public class ActModelServiceImpl implements IActModelService {
|
|||||||
Model model = repositoryService.getModel(modelId);
|
Model model = repositoryService.getModel(modelId);
|
||||||
byte[] xmlBytes = repositoryService.getModelEditorSource(modelId);
|
byte[] xmlBytes = repositoryService.getModelEditorSource(modelId);
|
||||||
if (ObjectUtil.isNotNull(model)) {
|
if (ObjectUtil.isNotNull(model)) {
|
||||||
byte[] bytes = WorkflowUtils.bpmnJsonToXmlBytes(xmlBytes);
|
if (JSONUtil.isTypeJSON(IOUtils.toString(xmlBytes, StandardCharsets.UTF_8.toString())) && ArrayUtil.isEmpty(WorkflowUtils.bpmnJsonToXmlBytes(xmlBytes))) {
|
||||||
if (JSONUtil.isTypeJSON(IOUtils.toString(xmlBytes, StandardCharsets.UTF_8.toString())) && ArrayUtil.isEmpty(bytes)) {
|
|
||||||
zipName = "模型不能为空,请至少设计一条主线流程!";
|
zipName = "模型不能为空,请至少设计一条主线流程!";
|
||||||
zos.putNextEntry(new ZipEntry(zipName + ".txt"));
|
zos.putNextEntry(new ZipEntry(zipName + ".txt"));
|
||||||
zos.write(zipName.getBytes(StandardCharsets.UTF_8));
|
zos.write(zipName.getBytes(StandardCharsets.UTF_8));
|
||||||
|
Loading…
Reference in New Issue
Block a user