DemoExcelDto.java 617 B

12345678910111213141516171819202122232425262728
  1. package com.hr.dto;
  2. import com.yy.basedevelop.common.util.ruoyi.annotation.Excel;
  3. import lombok.Data;
  4. import org.apache.poi.ss.usermodel.IndexedColors;
  5. /**
  6. * @author yaoy
  7. * @createTime 2025/10/13 14:11
  8. **/
  9. @Data
  10. public class DemoExcelDto {
  11. @Excel(
  12. name = "名字",
  13. cellType = Excel.ColumnType.STRING,
  14. headerColor= IndexedColors.BLUE1
  15. )
  16. private String name;
  17. @Excel(
  18. name = "名字",
  19. cellType = Excel.ColumnType.STRING,
  20. headerColor= IndexedColors.CORAL,
  21. dictName="test_code"
  22. )
  23. private String testCode;
  24. }