@@ -167,8 +167,8 @@ public class PrintController {
Map<String, Object> result = printService.preview(userName, reportName, whereCondition, otherParameters,
pageIndex);
byte[] data = null;
- if (result != null && result.get("data") != null) {
- data = (byte[]) result.get("data");
+ if (result != null && result.containsKey("data")) {
+ data = (byte[]) result.remove("data");
}
String message = "";
if (data == null) {