|
@@ -521,16 +521,16 @@ public class ExportController extends BaseController {
|
|
|
public void exportGoods(HttpServletResponse response, GoodsQueryInfo queryInfo) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- List<Goods> rows = goodsService.queryPage(queryInfo).getRows();
|
|
|
+ List<Goods> rows = goodsService.exportGoods(queryInfo);
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
|
- HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"商品编号", "货号", "品牌", "商品名称",
|
|
|
+ HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "分部成本", "商品编号", "货号", "品牌", "商品名称",
|
|
|
"是否组合商品", "商品类型", "商品分类", "具体型号", "内部库存", "税务库存", "库存类型", "市场价(元)",
|
|
|
- "零售价(元)", "商品团购价(元)", "商品描述", "商品详情", "是否上下架"}, new String[]{
|
|
|
- "id", "sn", "brand", "name",
|
|
|
+ "零售价(元)", "商品团购价(元)", "商品描述", "商品详情", "是否上下架","子商品编号","子商品名称","子商品成本","子商品货号"}, new String[]{
|
|
|
+ "organName", "organCostPrice", "id", "sn", "brand", "name",
|
|
|
"complementGoodsIdList == null || complementGoodsIdList == '' ? '否':'是'",
|
|
|
"type.desc", "goodsCategoryName", "specification", "stockCount", "taxStockCount", "stockType.msg", "marketPrice",
|
|
|
- "discountPrice", "groupPurchasePrice", "brief", "desc", "status.msg"}, rows);
|
|
|
+ "discountPrice", "groupPurchasePrice", "brief", "desc", "status.msg","childId","childName","childOrganCostPrice","childSn"}, rows);
|
|
|
response.setContentType("application/octet-stream");
|
|
|
response.setHeader("Content-Disposition", "attac:wq" +
|
|
|
"hment;filename=goods-" + DateUtil.getDate(new Date()) + ".xls");
|