Przeglądaj źródła

decode reportName in preprint

sunyj 8 lat temu
rodzic
commit
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,
     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");
         }
         }