fix: 在线编辑修订报错
This commit is contained in:
+4
@@ -87,6 +87,10 @@ public class ProcessFileServiceImpl implements IProcessFileService {
|
||||
@Override
|
||||
public String findEditFileByStandardNo(String standardNo) {
|
||||
OSSFile lastDocFileByStandardNo = this.findLastDocFileByStandardNo(standardNo);
|
||||
if (lastDocFileByStandardNo == null) {
|
||||
// 没有docx文件则自动生成并返回
|
||||
return this.saveEditFile(standardNo);
|
||||
}
|
||||
// 有的话需要转换为在线编辑的文件
|
||||
return lastDocFileByStandardNo.getId();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user