|
@@ -5,6 +5,7 @@ import cn.afterturn.easypoi.excel.ExcelImportUtil;
|
|
import cn.afterturn.easypoi.excel.entity.ExportParams;
|
|
import cn.afterturn.easypoi.excel.entity.ExportParams;
|
|
import cn.afterturn.easypoi.excel.entity.ImportParams;
|
|
import cn.afterturn.easypoi.excel.entity.ImportParams;
|
|
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
|
|
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
|
|
|
|
+import com.jeeplus.core.excel.ExcelDiceAddressListHandlerImpl;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
@@ -68,8 +69,9 @@ public class EasyPoiUtil {
|
|
*/
|
|
*/
|
|
|
|
|
|
public static void exportExcel(List <?> list, String title, String sheetName, Class <?> pojoClass, String fileName, HttpServletResponse response) {
|
|
public static void exportExcel(List <?> list, String title, String sheetName, Class <?> pojoClass, String fileName, HttpServletResponse response) {
|
|
-
|
|
|
|
- defaultExport ( list, pojoClass, fileName, response, new ExportParams ( title, sheetName ) );
|
|
|
|
|
|
+ ExportParams exportParams = new ExportParams(title, sheetName);
|
|
|
|
+ exportParams.setDictHandler(new ExcelDiceAddressListHandlerImpl());
|
|
|
|
+ defaultExport ( list, pojoClass, fileName, response, exportParams );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|