package jnpf.model.attendance.vo.attendance;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ExcelIgnoreUnannotated
@HeadFontStyle(fontName = "黑体", fontHeightInPoints = 12)
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
public class PersonnelTrendPageListVo {
    /**
     * 考勤组名称
     */
    @ColumnWidth(20)
    @ExcelProperty("考勤组")
    private String groupName;
    /**
     * 日期
     */
    @ColumnWidth(15)
    @ExcelProperty("日期")
    @JsonFormat(pattern = "yyyy-MM-DD", timezone = "GMT+8")
    private String day;
    /**
     * 人均工时
     */
    @ColumnWidth(20)
    @ExcelProperty("人均工时")
    private BigDecimal personHours = BigDecimal.ZERO;
}
