|
|
@@ -54,6 +54,7 @@ import org.springframework.transaction.annotation.Propagation;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.io.File;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.CompletableFuture;
|
|
|
import java.util.stream.Collectors;
|
|
|
@@ -803,7 +804,7 @@ public class AppPlanServiceImpl extends ServiceImpl<AppPlanMapper, AppPlan> impl
|
|
|
registerBookPdf.setOrgPath(sysOrg.getPath());
|
|
|
registerBookPdf.setFileUrl(pdfUrl);
|
|
|
//registerBookPdf.setFileName(StringUtils.substringAfterLast(pdfUrl, "\\"));
|
|
|
- registerBookPdf.setFileName(StringUtils.substringAfterLast(pdfUrl, "/"));
|
|
|
+ registerBookPdf.setFileName(StringUtils.substringAfterLast(pdfUrl, File.separator));
|
|
|
if(StringUtils.isEmpty(registerBookPdf.getFileName())||StringUtils.isEmpty(pdfUrl)){
|
|
|
throw new SystemException(ErrorMsgConstants.GENERATE_PDF_ERROR);
|
|
|
}
|