1
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.ruoyi.web.controller.jarvis;
|
package com.ruoyi.web.controller.jarvis;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@@ -54,13 +55,13 @@ public class ErpProductController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('jarvis:erpProduct:export')")
|
@PreAuthorize("@ss.hasPermi('jarvis:erpProduct:export')")
|
||||||
@Log(title = "闲鱼商品", businessType = BusinessType.EXPORT)
|
@Log(title = "闲鱼商品", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public AjaxResult export(ErpProduct erpProduct)
|
public void export(HttpServletResponse response, ErpProduct erpProduct)
|
||||||
{
|
{
|
||||||
List<ErpProduct> list = erpProductService.selectErpProductList(erpProduct);
|
List<ErpProduct> list = erpProductService.selectErpProductList(erpProduct);
|
||||||
String batchAt = DateUtils.getTime();
|
String batchAt = DateUtils.getTime();
|
||||||
List<ErpProductExportRow> rows = ErpProductExportRow.fromList(list, batchAt);
|
List<ErpProductExportRow> rows = ErpProductExportRow.fromList(list, batchAt);
|
||||||
ExcelUtil<ErpProductExportRow> util = new ExcelUtil<ErpProductExportRow>(ErpProductExportRow.class);
|
ExcelUtil<ErpProductExportRow> util = new ExcelUtil<ErpProductExportRow>(ErpProductExportRow.class);
|
||||||
return util.exportExcel(rows, "闲鱼商品_AI明细");
|
util.exportExcel(response, rows, "闲鱼商品_AI明细");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user