Commit 9e8550c9 by yancanhua

Merge branch 'v1.1.0' of https://gitee.com/foutouren/aus into v1.1.0

2 parents a3272823 1b1c0211
package com.glsx.usedcar.web.rest.account; package com.glsx.usedcar.web.rest.account;
import cn.hutool.core.date.DateUtil;
import com.glsx.usedcar.export.AccountPreferenceExportBean; import com.glsx.usedcar.export.AccountPreferenceExportBean;
import com.glsx.usedcar.export.ExcelExporter; import com.glsx.usedcar.export.ExcelExporter;
import com.glsx.usedcar.module.account.dto.*; import com.glsx.usedcar.module.account.dto.*;
...@@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.*;
import org.summerframework.orm.paging.Pagination; import org.summerframework.orm.paging.Pagination;
import java.io.IOException; import java.io.IOException;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
...@@ -54,7 +56,8 @@ public class AccountPreferenceController { ...@@ -54,7 +56,8 @@ public class AccountPreferenceController {
// 实体转导出Bean(需自定义AccountPreferenceExportBean) // 实体转导出Bean(需自定义AccountPreferenceExportBean)
List<AccountPreferenceExportBean> exportBeans = preferences.stream().map(AccountPreferenceExportBean::new).toList(); List<AccountPreferenceExportBean> exportBeans = preferences.stream().map(AccountPreferenceExportBean::new).toList();
// Excel导出(复用项目的ExcelExporter工具类) // Excel导出(复用项目的ExcelExporter工具类)
ExcelExporter.exportExcel(response, "用户偏好列表", "用户偏好列表", AccountPreferenceExportBean.class, exportBeans); String name = String.format("收车偏好列表_%s", DateUtil.format(new Date(), "YYYY-MM-DD_HH_mm"));
ExcelExporter.exportExcel(response, name, "用户偏好列表", AccountPreferenceExportBean.class, exportBeans);
} }
@Operation(summary = "根据用户偏好id修改用户偏好", description = "根据主键ID修改用户车辆偏好配置") @Operation(summary = "根据用户偏好id修改用户偏好", description = "根据主键ID修改用户车辆偏好配置")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!