package com.xunmei.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.xunmei.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_work_time_set_dayofweek
 *
 * @author xunmei
 * @date 2023-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_work_time_set_dayofweek")
@ApiModel(value = "SysWorkTimeSetDayofweek对象", description = "【请填写功能名称】")
public class SysWorkTimeSetDayofweek extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 作息配置表主键
     */
    @ApiModelProperty(value = "作息配置表主键")
    private Long workTimeSetId;

    /**
     * 是否为工作日
     */
    @ApiModelProperty(value = "是否为工作日")
    private Long isWorkday;

    /**
     * 一周的第几天，1表示周日,2表示周一
     */
    @ApiModelProperty(value = "一周的第几天，1表示周日,2表示周一")
    private Long dayOfWeek;
    @TableField(exist = false)
    private String  dayOfWeekText;

    /**
     * 上班时间
     */
    @ApiModelProperty(value = "上班时间")
    private String workTime;

    /**
     * 营业时间
     */
    @ApiModelProperty(value = "营业时间")
    private String openTime;

    /**
     * 午休开始
     */
    @ApiModelProperty(value = "午休开始")
    private String noonbreakStart;

    /**
     * 午休结束
     */
    @ApiModelProperty(value = "午休结束")
    private String noonbreakEnd;

    /**
     * 营业终了
     */
    @ApiModelProperty(value = "营业终了")
    private String closeTime;

    /**
     * 下班时间
     */
    @ApiModelProperty(value = "下班时间")
    private String workOffTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)


                .append("id", getId())


                .append("workTimeSetId", getWorkTimeSetId())


                .append("isWorkday", getIsWorkday())


                .append("dayOfWeek", getDayOfWeek())


                .append("workTime", getWorkTime())


                .append("openTime", getOpenTime())


                .append("noonbreakStart", getNoonbreakStart())


                .append("noonbreakEnd", getNoonbreakEnd())


                .append("closeTime", getCloseTime())


                .append("workOffTime", getWorkOffTime())
                .toString();
    }
}
