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