ソースを参照

decode reportName in preprint

sunyj 7 年 前
コミット
080d60815b

+ 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,
                          String printType, String title, HttpServletRequest request, HttpServletResponse response)
             throws JRException, IOException, DocumentException, SQLException, ServletException {
+        if(!StringUtils.isEmpty(reportName)){
+            reportName = URLDecoder.decode(reportName, "UTF-8");
+        }
         if(!StringUtils.isEmpty(whereCondition)){
             whereCondition = URLDecoder.decode(whereCondition, "UTF-8");
         }