|
|
@@ -249,7 +249,7 @@ public class PrintServiceImpl implements PrintService {
|
|
|
}
|
|
|
}
|
|
|
} catch (JRException e) {
|
|
|
- logger.error(e);
|
|
|
+ e.printStackTrace();
|
|
|
throw new ReportException("编译报表模板失败: " + jrxmlFilePath + " " + e.getMessage()).setDetailedMessage(e);
|
|
|
}
|
|
|
return jasperFilePath;
|
|
|
@@ -392,7 +392,7 @@ public class PrintServiceImpl implements PrintService {
|
|
|
BufferedReader bufferedReader = new BufferedReader(new FileReader(jrxmlFilePath));
|
|
|
String line = null;
|
|
|
Set<String> result = new HashSet<>();
|
|
|
- while (!StringUtils.isEmpty((line = bufferedReader.readLine()))) {
|
|
|
+ while ((line = bufferedReader.readLine()) != null) {
|
|
|
// 格式为$F{PD_TOTAL}
|
|
|
Pattern pattern = Pattern.compile("\\$F\\{([^\\$]*)\\}");
|
|
|
Matcher matcher = pattern.matcher(line);
|