New file |
| | |
| | | package com.ycl.platform.domain.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.alibaba.excel.annotation.write.style.*; |
| | | import com.alibaba.excel.enums.BooleanEnum; |
| | | import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum; |
| | | import com.alibaba.excel.enums.poi.VerticalAlignmentEnum; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @author gonghl |
| | | * @since 2024/7/30 上午 10:01 |
| | | */ |
| | | @Data |
| | | @ColumnWidth(20) |
| | | @HeadRowHeight(30) |
| | | @ContentRowHeight(30) |
| | | @HeadStyle(fillForegroundColor = 64) |
| | | @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER) |
| | | @ContentFontStyle(fontHeightInPoints = 18, bold = BooleanEnum.TRUE, fontName = "宋体") |
| | | @HeadFontStyle(fontHeightInPoints = 18, bold = BooleanEnum.TRUE, fontName = "宋体") |
| | | public class CalculateExport { |
| | | |
| | | /** |
| | | * 规则名称 |
| | | */ |
| | | @ExcelProperty({"自贡市公共视频监控系统续维合同", "规则名称"}) |
| | | @ColumnWidth(40) |
| | | private String ruleName; |
| | | |
| | | /** |
| | | * 数量 |
| | | */ |
| | | @ExcelProperty({"自贡市公共视频监控系统续维合同", "数量"}) |
| | | private Integer num; |
| | | |
| | | /** |
| | | * 分数 |
| | | */ |
| | | @ExcelProperty({"自贡市公共视频监控系统续维合同", "分数"}) |
| | | private Integer score; |
| | | |
| | | /** |
| | | * 金额 |
| | | */ |
| | | @ExcelProperty({"自贡市公共视频监控系统续维合同", "金额"}) |
| | | private BigDecimal money; |
| | | |
| | | } |