|
|
|
@ -443,14 +443,8 @@ public class BasicdataGoodsAreaServiceImpl extends BaseServiceImpl<BasicdataGood
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// //sheetTwo
|
|
|
|
|
// List<BasicdatavisualizationSheetTwo> basicdatavisualizationSheetTwos = baseMapper.exportWarehouseByallocation(areaId);
|
|
|
|
|
// basicdatavisualizationSheetTwos.forEach(e->{
|
|
|
|
|
// if (StringUtils.isNotBlank(e.getFirsts())){e.setFirsts(this.countUniqueProperties(e.getFirsts())); }
|
|
|
|
|
// if (StringUtils.isNotBlank(e.getSecond())){e.setSecond(this.countUniqueProperties(e.getSecond()));}
|
|
|
|
|
// if (StringUtils.isNotBlank(e.getThirdProduct())){e.setThirdProduct(this.countUniqueProperties(e.getThirdProduct()));}
|
|
|
|
|
// if (StringUtils.isNotBlank(e.getOrderCode())){e.setOrderCode(this.countUniqueProperties(e.getOrderCode()));}
|
|
|
|
|
// if (StringUtils.isNotBlank(e.getMaterialName())){e.setMaterialName(this.countUniqueProperties(e.getMaterialName()));}
|
|
|
|
|
// });
|
|
|
|
|
List<BasicdatavisualizationZreoSheetTwo> basicdatavisualizationSheetTwos = baseMapper.exportWarehouseZreoByallocation(areaId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
String fileName = "仓库数据" + DateUtil.time(); |
|
|
|
@ -460,8 +454,8 @@ public class BasicdataGoodsAreaServiceImpl extends BaseServiceImpl<BasicdataGood
|
|
|
|
|
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
|
|
|
|
// 构造各个sheet页相关信息
|
|
|
|
|
List<GoodsAreaSheetInfoBean> goodsAreaSheetInfoBeans = new LinkedList<>(); |
|
|
|
|
goodsAreaSheetInfoBeans.add(new GoodsAreaSheetInfoBean("订单自编号维度",BasicdatavisualizationZreoSheetOne.class,basicdatavisualizationZreoSheetOnes)); |
|
|
|
|
// goodsAreaSheetInfoBeans.add(new GoodsAreaSheetInfoBean("货位维度",BasicdatavisualizationSheetTwo.class,basicdatavisualizationSheetTwos));
|
|
|
|
|
goodsAreaSheetInfoBeans.add(new GoodsAreaSheetInfoBean("零担维度",BasicdatavisualizationZreoSheetOne.class,basicdatavisualizationZreoSheetOnes)); |
|
|
|
|
goodsAreaSheetInfoBeans.add(new GoodsAreaSheetInfoBean("货位维度",BasicdatavisualizationZreoSheetTwo.class,basicdatavisualizationSheetTwos)); |
|
|
|
|
// goodsAreaSheetInfoBeans.add(new GoodsAreaSheetInfoBean("包条维度",BasicdatavisualizationSheetThree.class,basicdatavisualizationSheetThrees));
|
|
|
|
|
// EasyExcel.write(response.getOutputStream(), BasicdataGoodsAreaexportExcel.class).sheet("货区数据表").doWrite(warehouseGoodsAreaList);
|
|
|
|
|
ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).build(); |
|
|
|
|