CellMerge.java 410 B

123456789101112131415161718192021222324
  1. package com.ruoyi.common.annotation;
  2. import com.ruoyi.common.excel.CellMergeStrategy;
  3. import java.lang.annotation.*;
  4. /**
  5. * excel 列单元格合并(合并列相同项)
  6. *
  7. * 需搭配 {@link CellMergeStrategy} 策略使用
  8. *
  9. * @author Lion Li
  10. */
  11. @Target(ElementType.FIELD)
  12. @Retention(RetentionPolicy.RUNTIME)
  13. @Inherited
  14. public @interface CellMerge {
  15. /**
  16. * col index
  17. */
  18. int index() default -1;
  19. }