|
@@ -32,6 +32,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
@@ -261,9 +262,16 @@ public class ProductOrderFacade extends ProductOrderServiceImpl {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- public RespDTO export(ProductOrderExportVO productOrderExportVO){
|
|
|
+ /**
|
|
|
+ * 导出产品订单相关信息
|
|
|
+ * @param productOrderExportVO
|
|
|
+ * @param response
|
|
|
+ */
|
|
|
+ public void export(ProductOrderExportVO productOrderExportVO,HttpServletResponse response){
|
|
|
ProductOrderVO productOrderVO =new ProductOrderVO();
|
|
|
- productOrderVO.setSize(999999999999999999L);
|
|
|
+ BeanUtil.copyProperties(productOrderExportVO,productOrderVO);
|
|
|
+ productOrderVO.setCurrent(1L);
|
|
|
+ productOrderVO.setSize(999999999999999999L);
|
|
|
Map<String, Object> userMap = new HashMap<String, Object>();
|
|
|
userMap.put("startTime", productOrderExportVO.getStartTime());
|
|
|
userMap.put("endTime", productOrderExportVO.getEndTime());
|
|
@@ -303,13 +311,13 @@ public class ProductOrderFacade extends ProductOrderServiceImpl {
|
|
|
userInfo.getEmail(),
|
|
|
String.valueOf(userInfo.getAuditStatus())));
|
|
|
}
|
|
|
- //response.setContentType("text/html;charset=UTF-8");
|
|
|
- String filePath = productOrderExportVO.getFilePath();//文件路径
|
|
|
+ response.setContentType("text/html;charset=UTF-8");
|
|
|
+ /*String filePath = productOrderExportVO.getFilePath();//文件路径
|
|
|
String fileName = productOrderExportVO.getFileName();//文件名
|
|
|
ExportBeanExcelUtil ex = new ExportBeanExcelUtil();
|
|
|
- RespDTO resul = ex.exportExcel("测试POI导出EXCEL文档", listName, listId, list, filePath, fileName);
|
|
|
-
|
|
|
- return resul;
|
|
|
+ RespDTO resul = ex.exportExcel("测试POI导出EXCEL文档", listName, listId, list, filePath, fileName);*/
|
|
|
+ ExportBeanExcelUtil ex = new ExportBeanExcelUtil();
|
|
|
+ ex.exportExcelNew("产品申请相关信息", listName, listId, list,response);
|
|
|
}
|
|
|
}
|
|
|
|