fuliqi
2024-11-29 a0d5a27690869a2a80251976b119c0b0b8fb58c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.ycl.common.utils.excel.annotation;
 
import com.ycl.common.utils.excel.core.CellMergeStrategy;
 
import java.lang.annotation.*;
 
/**
 * excel 列单元格合并(合并列相同项)
 * <p>
 * 需搭配 {@link CellMergeStrategy} 策略使用
 *
 * @author Lion Li
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface CellMerge {
 
    /**
     * col index
     */
    int index() default -1;
 
    /**
     * 合并需要依赖的其他字段名称
     */
    String[] mergeBy() default {};
 
}