package com.ylx.attendanceconfig.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("考勤规则详情VO")
public class AttendanceRuleDetailVO implements Serializable {
    private static final long serialVersionUID = -7242343396476539324L;

    @ApiModelProperty("考勤规则ID")
    private Long id;

    @ApiModelProperty("规则名称")
    private String ruleName;

    @ApiModelProperty("商户ID，为空表示平台默认规则")
    private String merchantId;

    @ApiModelProperty("基本工作时长，单位：小时")
    private BigDecimal basicWorkHours;

    @ApiModelProperty("是否启用工作时长规则：0=无，1=有")
    private Integer workDurationRuleEnabled;

    @ApiModelProperty("状态：0=停用，1=启用")
    private Integer status;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty("扣款区间规则集合")
    private List<AttendanceDeductionRuleVO> deductionRules;
}
