package com.ssm.manage.vo;

import com.ssm.manage.entity.JobContentList;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class AbnormalClockInRecordDetail extends JobContentList {
    /**
     * 异常原因说明
     */
    @ApiModelProperty(name = "reason", value = "异常原因说明")
    private String reason;

    public AbnormalClockInRecordDetail(@NotNull JobContentList jobContentList) {
        BeanUtils.copyProperties(jobContentList, this);
    }
}
