sunyj 8 лет назад
Родитель
Сommit
080d60815b
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      report/src/main/java/com/uas/report/controller/PrintController.java

+ 3 - 0
report/src/main/java/com/uas/report/controller/PrintController.java

@@ -86,6 +86,9 @@ public class PrintController {
     public void preprint(String userName, String profile, String reportName, String whereCondition, String otherParameters,
     public void preprint(String userName, String profile, String reportName, String whereCondition, String otherParameters,
                          String printType, String title, HttpServletRequest request, HttpServletResponse response)
                          String printType, String title, HttpServletRequest request, HttpServletResponse response)
             throws JRException, IOException, DocumentException, SQLException, ServletException {
             throws JRException, IOException, DocumentException, SQLException, ServletException {
+        if(!StringUtils.isEmpty(reportName)){
+            reportName = URLDecoder.decode(reportName, "UTF-8");
+        }
         if(!StringUtils.isEmpty(whereCondition)){
         if(!StringUtils.isEmpty(whereCondition)){
             whereCondition = URLDecoder.decode(whereCondition, "UTF-8");
             whereCondition = URLDecoder.decode(whereCondition, "UTF-8");
         }
         }