EasyPoi根据权限动态导出列和实现动态列

easypoi: http://easypoi.mydoc.io/

使用的注解版的导出 @Excel

 一、实现简单导出

引入easypoi的包

<!--easypoi导入导出-->
 <dependency>
     <groupId>cn.afterturn</groupId>
     <artifactId>easypoi-base</artifactId>
     <version>4.2.0</version>
 </dependency>

1.在我们定义的实体类上面加上@Excel注解

2.定义我们导出的工具类(导入的没有放进去)

/**
 * @program: cecport-saas-root
 * @description: 导入导出工具类
 * @author: yanghui
 * @create: 2021-02-05 09:15
 **/
@Slf4j
public class PoiExcelUtils {

    /**
     * @author  yanghui 
     * @description:  excle导出
     * &

猜你喜欢

转载自blog.csdn.net/qq_39008613/article/details/115353221
今日推荐