EasyPoi dynamically exports columns and implements dynamic columns based on permissions

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

Export of the annotated version used @Excel

 One, realize simple export

Introduce the easypoi package

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

1. Add @Excel annotation to the entity class we defined

2. Define the tool class we exported (the imported ones are not put in)

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

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

Guess you like

Origin blog.csdn.net/qq_39008613/article/details/115353221