|
|
@@ -24,6 +24,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
+import java.net.URLDecoder;
|
|
|
import java.sql.SQLException;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
@@ -85,6 +86,12 @@ 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(whereCondition)){
|
|
|
+ whereCondition = URLDecoder.decode(whereCondition, "UTF-8");
|
|
|
+ }
|
|
|
+ if(!StringUtils.isEmpty(otherParameters)){
|
|
|
+ otherParameters = URLDecoder.decode(otherParameters, "UTF-8");
|
|
|
+ }
|
|
|
userName = userName == null ? null : userName.toUpperCase();
|
|
|
// printType为空,默认进入预览页
|
|
|
PrintType type = StringUtils.isEmpty(printType) ? PrintType.PREVIEW : PrintType.checkType(printType);
|