|
@@ -2186,6 +2186,9 @@ public class TrialSelfInspectionRecordServiceImpl extends BaseServiceImpl<TrialS
|
|
|
public R getSamplePdfUrl(String id, String contrctId) {
|
|
|
try {
|
|
|
String pdf = this.getMergePdfToTrial(Func.toLong(contrctId), Func.toLong(id));
|
|
|
+ if (pdf == null || pdf.isEmpty()) {
|
|
|
+ return R.fail("获取pdf文件失败");
|
|
|
+ }
|
|
|
return R.data(pdf);
|
|
|
} catch (FileNotFoundException e) {
|
|
|
throw new RuntimeException(e);
|