|
@@ -1,14 +1,31 @@
|
|
|
package com.xt.jygl.gkjygl.gkjyr.jyrjbxx.service.impl;
|
|
|
|
|
|
+import java.io.IOException;
|
|
|
import java.net.URL;
|
|
|
import java.util.List;
|
|
|
-
|
|
|
+import javax.servlet.ServletOutputStream;
|
|
|
+import org.apache.poi.xssf.usermodel.XSSFCell;
|
|
|
+import org.apache.poi.xssf.usermodel.XSSFCellStyle;
|
|
|
+import org.apache.poi.xssf.usermodel.XSSFRow;
|
|
|
+import org.apache.poi.xssf.usermodel.XSSFSheet;
|
|
|
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-
|
|
|
import com.xt.jygl.common.Constants;
|
|
|
+import com.xt.jygl.common.ExportUtil;
|
|
|
import com.xt.jygl.common.GlobalData;
|
|
|
import com.xt.jygl.common.service.JyglBaseService;
|
|
|
+import com.xt.jygl.gkjcxx.gk.entity.GkEntity;
|
|
|
+import com.xt.jygl.gkjcxx.gq.entity.GqEntity;
|
|
|
+import com.xt.jygl.gkjcxx.mt.service.MtService;
|
|
|
+import com.xt.jygl.gkjcxx.mt.vo.MtVo;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.jyrbw.service.BwService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.jyrcg.service.CgService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.jyrcg.vo.CgVo;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.jyrck.service.CkService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.jyrck.vo.CkVo;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.jyrdc.service.DcService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.jyrdc.vo.DcVo;
|
|
|
import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.client.GkjyrWebService;
|
|
|
import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.dao.BwDao;
|
|
|
import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.dao.GkjyrDao;
|
|
@@ -17,7 +34,21 @@ import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.entity.BwEntity;
|
|
|
import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.entity.GkjyrEntity;
|
|
|
import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.entity.RyEntity;
|
|
|
import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.service.GkjyrService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.vo.BwVo;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.vo.GkjyrVo;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.vo.RyVo;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.qytz.service.QytzService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.qytz.vo.QytzVo;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.ry.service.RyService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.sssb.service.SssbService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.sssb.vo.SssbVo;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.xkzfz.service.XkzfzService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.xkzfz.vo.XkzfzVo;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.xkzxx.service.XkzxxService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.zxjx.service.ZxjxService;
|
|
|
+import com.xt.jygl.gkjygl.gkjyr.zxjx.vo.ZxjxVo;
|
|
|
import com.xtframe.core.webService.AuthHandlerResolver;
|
|
|
+import com.xtframe.sec.code.entity.CodeEntity;
|
|
|
import com.xtframe.sec.common.SecRepository;
|
|
|
|
|
|
@Service
|
|
@@ -28,7 +59,30 @@ public class GkjyrServiceImpl extends JyglBaseService<GkjyrEntity, String> imple
|
|
|
private BwDao bwDao;
|
|
|
@Autowired
|
|
|
private RyDao ryDao;
|
|
|
+ @Autowired
|
|
|
+ private SssbService sssbService;
|
|
|
+ @Autowired
|
|
|
+ private XkzxxService xkzxxService;
|
|
|
+ @Autowired
|
|
|
+ private XkzfzService xkzfzService;
|
|
|
+ @Autowired
|
|
|
+ private MtService mtService;
|
|
|
+ @Autowired
|
|
|
+ private BwService bwService;
|
|
|
+ @Autowired
|
|
|
+ private CgService cgService;
|
|
|
+ @Autowired
|
|
|
+ private CkService ckService;
|
|
|
+ @Autowired
|
|
|
+ private DcService dcService;
|
|
|
+ @Autowired
|
|
|
+ private RyService ryService;
|
|
|
+ @Autowired
|
|
|
+ private QytzService qytzService;
|
|
|
+ @Autowired
|
|
|
+ private ZxjxService zxjxService;
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
protected SecRepository<GkjyrEntity, String> getDao() {
|
|
|
return this.dao;
|
|
@@ -83,4 +137,333 @@ public class GkjyrServiceImpl extends JyglBaseService<GkjyrEntity, String> imple
|
|
|
return dao.findGkjyrByGqid(gqid);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void exportExcelAll(List<GkjyrVo> voList, ServletOutputStream outputStream) {
|
|
|
+ // 创建一个workbook 对应一个excel应用文件
|
|
|
+ XSSFWorkbook workBook = new XSSFWorkbook();
|
|
|
+ setSheet(voList, outputStream, workBook);
|
|
|
+ try {
|
|
|
+ workBook.write(outputStream);
|
|
|
+ outputStream.flush();
|
|
|
+ outputStream.close();
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ } finally {
|
|
|
+ try {
|
|
|
+ outputStream.close();
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSheet(List<GkjyrVo> voList, ServletOutputStream outputStream, XSSFWorkbook workBook) {
|
|
|
+ String[] titles = { "序号", "所在地", "所在港口", "所在港区", "是否危货企业", "经营人名称", "企业性质", "办公地址", "邮政编码", "经营许可证号编号", "发证日期", "发证机关",
|
|
|
+ "经营范围", "经营区域", "主营货种", "法定代表人姓名", "联系电话", "传真", "工商营业执照编号", "投资总额", "注册资本", "危险货物作业附证编号", "设施保安符合证书编号",
|
|
|
+ "从业人员数量", "现场管理人员(人)", "专业技术人员(人)", "现场作业人员(人)", "房建设施总面积(平方米)", "有无产权证明", "办公用房(平方米)",
|
|
|
+ "岸线长度(米)", "码头前沿河底高程(米)", "码头泊位总数(平方米)", "生产性泊位(个)", "非生产性泊位(个)", "最大靠泊能力(万吨)", "万吨级以上泊位数量(个)", "码头结构型式",
|
|
|
+ "泊位总长度(米)", "有无竣工验收证明", "设计年通过能力(万吨)", "上年度总吞量(万吨)", "其中外贸总吞量(万吨)", "陆域总面积(平方米)", "仓库总面积(平方米)", "堆场总面积(平方米)",
|
|
|
+ "装卸设备(台)", "其中门座吊机(台)", "轮胎起重机(台)", "固定吊机(台)", "汽车起重机(台)", "输送设备(台)", "其他机械(台)", "港作船舶(艘)", "船舶总载重量(万吨)",
|
|
|
+ "工艺管线长度(米)", "铁路专用长度(米)", "储罐数量(个)", "储罐总容量(立方米)" };
|
|
|
+ // 在workbook中添加一个sheet,对应Excel文件中的sheet
|
|
|
+ XSSFSheet jyrSheet = workBook.createSheet("港口经营人信息");
|
|
|
+ ExportUtil exportUtil = new ExportUtil(workBook, jyrSheet);
|
|
|
+ XSSFCellStyle headStyle = exportUtil.getHeadStyle();
|
|
|
+ XSSFCellStyle bodyStyle = exportUtil.getBodyStyle();
|
|
|
+ // 构建表头
|
|
|
+ XSSFRow headRow = jyrSheet.createRow(0);
|
|
|
+ XSSFCell cell = null;
|
|
|
+ for (int i = 0; i < titles.length; i++) {
|
|
|
+ cell = headRow.createCell(i);
|
|
|
+ cell.setCellStyle(headStyle);
|
|
|
+ cell.setCellValue(titles[i]);
|
|
|
+ }
|
|
|
+ // 构建表体数据
|
|
|
+ if (voList != null && voList.size() > 0) {
|
|
|
+ for (int j = 0; j < voList.size(); j++) {
|
|
|
+ XSSFRow bodyRow = jyrSheet.createRow(j + 1);
|
|
|
+ GkjyrVo gkjyr = voList.get(j);
|
|
|
+ // 序号
|
|
|
+ cell = bodyRow.createCell(0);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(j + 1);
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(1);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getSzdzw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(2);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getSzgkzw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(3);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getSzgqzw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(4);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getSfwhqyzw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(5);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getGkjyr());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(6);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getQyxzzw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(7);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getBgdz());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(8);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getYzbm());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(9);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getGkjyxkzh());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(10);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getFzrqstr());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(11);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getFzjg());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(12);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getJyfw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(13);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getJyqy());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(14);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getZyhz());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(15);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getFddbr());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(16);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getLxdh());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(17);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getCz());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(18);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getGsyyzzbh());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(19);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getTzze());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(20);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getZczb());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(21);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getGkwxhwzyfzbh());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(22);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getGkssbafhzsbh());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(23);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getCyrysl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(24);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getXcglrysl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(25);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getZyjsrysl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(26);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getXczyrysl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(27);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getFjsszmj());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(28);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getYwcqzmzw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(29);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getBgyfmj());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(30);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getAxcd());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(31);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getMtqyhdgc());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(32);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getMtbwzs());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(33);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getScxbw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(34);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getFscxbw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(35);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getZdkbnl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(36);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getWdjysbwsl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(37);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getMtjgxszw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(38);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getBwzcd());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(39);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getYwjgyszw());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(40);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getSjntgnl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(41);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getSndzttl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(42);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getSndwmttl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(43);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getLymj());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(44);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getCkzmj());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(45);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getTczmj());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(46);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getZxsbgs());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(47);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getMzdjgs());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(48);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getLtqzjgs());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(49);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getGddjgs());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(50);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getQcqzjgs());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(51);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getSssbgs());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(52);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getQtjxgs());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(53);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getGzcbgs());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(54);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getCbzzzl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(55);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getGygxcd());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(56);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getTlzyxcd());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(57);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getCgsl());
|
|
|
+
|
|
|
+ cell = bodyRow.createCell(58);
|
|
|
+ cell.setCellStyle(bodyStyle);
|
|
|
+ cell.setCellValue(gkjyr.getCgzrl());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+// public void exportJyr(List<XkzxxVo> xkzxxVos, List<SssbVo> sssbVos, ServletOutputStream outputStream) {
|
|
|
+ public void exportJyr(List<GkjyrVo> voList, List<XkzfzVo> xkzfzVos, List<MtVo> mtVos, List<BwVo> bwVos, List<CgVo> cgVos, List<CkVo> ckVos, List<DcVo> dcVos, List<RyVo> ryVos, List<SssbVo> sssbVos, List<QytzVo> qytzVos, List<ZxjxVo> zxjxVos, ServletOutputStream outputStream, List<CodeEntity> listZycs, List<GqEntity> listgq, List<GkEntity> listgk) {
|
|
|
+ // 创建一个workbook 对应一个excel应用文件
|
|
|
+ XSSFWorkbook workBook = new XSSFWorkbook();
|
|
|
+ //经营人信息
|
|
|
+ setSheet(voList, outputStream, workBook);
|
|
|
+ //许可证信息
|
|
|
+// xkzxxService.setXkzxxSheet(xkzxxVos, outputStream, workBook);
|
|
|
+ //许可证附证信息
|
|
|
+ xkzfzService.setSheet(xkzfzVos, outputStream, listZycs, listgq, listgk, workBook);
|
|
|
+ //码头
|
|
|
+ mtService.setSheet(mtVos, outputStream, workBook);
|
|
|
+ //泊位
|
|
|
+ bwService.setSheet(bwVos, outputStream, workBook);
|
|
|
+ //储罐
|
|
|
+ cgService.setSheet(cgVos, outputStream, workBook);
|
|
|
+ //仓库
|
|
|
+ ckService.setSheet(ckVos, outputStream, workBook);
|
|
|
+ //堆场
|
|
|
+ dcService.setSheet(dcVos, outputStream, workBook);
|
|
|
+ //人员及特征
|
|
|
+ ryService.setSheet(ryVos, outputStream, workBook);
|
|
|
+ //设施设备信息
|
|
|
+ sssbService.setSheet(sssbVos, outputStream, workBook);
|
|
|
+ //企业投资
|
|
|
+ qytzService.setSheet(qytzVos, outputStream, workBook);
|
|
|
+ //装卸机械
|
|
|
+ zxjxService.setSheet(zxjxVos, outputStream, workBook);
|
|
|
+ try {
|
|
|
+ workBook.write(outputStream);
|
|
|
+ outputStream.flush();
|
|
|
+ outputStream.close();
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ } finally {
|
|
|
+ try {
|
|
|
+ outputStream.close();
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|