|
@@ -1,7 +1,9 @@
|
|
|
package com.boman.web.core.controller;
|
|
|
|
|
|
+import java.io.IOException;
|
|
|
import java.util.List;
|
|
|
|
|
|
+
|
|
|
import com.boman.common.core.utils.poi.ExcelUtil;
|
|
|
import com.boman.common.core.web.controller.BaseController;
|
|
|
import com.boman.common.core.web.page.TableDataInfo;
|
|
@@ -21,6 +23,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import com.boman.web.core.domain.VaccineInfoOperation;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 疫苗信息操作Controller
|
|
@@ -53,12 +57,11 @@ public class VaccineInfoOperationController extends BaseController
|
|
|
@PreAuthorize(hasPermi = "@ss.hasPermi('core:operation:export')")
|
|
|
@Log(title = "疫苗信息操作", businessType = BusinessType.EXPORT)
|
|
|
@GetMapping("/export")
|
|
|
- public AjaxResult export(VaccineInfoOperation vaccineInfoOperation)
|
|
|
+ public void export(HttpServletResponse response, VaccineInfoOperation vaccineInfoOperation) throws IOException
|
|
|
{
|
|
|
List<VaccineInfoOperation> list = vaccineInfoOperationService.selectVaccineInfoOperationList(vaccineInfoOperation);
|
|
|
ExcelUtil<VaccineInfoOperation> util = new ExcelUtil<VaccineInfoOperation>(VaccineInfoOperation.class);
|
|
|
- // return util.exportExcel(list, "operation");
|
|
|
- return null;
|
|
|
+ util.exportExcel(response,list, "operation");
|
|
|
}
|
|
|
|
|
|
/**
|