package com.xunmei.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
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_month
 *
 * @author xunmei
 * @date 2023-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_work_time_month")
@ApiModel(value = "SysWorkTimeMonth对象" , description = "【请填写功能名称】")
public class SysWorkTimeMonth extends BaseEntity
        {
private static final long serialVersionUID=1L;

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

    /** 最后修改人id */
            @ApiModelProperty(value = "最后修改人id")
    private Long modifiedId;

    /** 修改人名称 */
            @ApiModelProperty(value = "修改人名称")
    private String modifiedName;

    /** 歇业天数 */
            @ApiModelProperty(value = "歇业天数")
    private Long closeCount;

    /** 年月 */
            @JsonFormat(pattern = "yyyy-MM-dd")
            @ApiModelProperty(value = "年月")
    private Date month;

    /** 营业天数 */
            @ApiModelProperty(value = "营业天数")
    private Long openCount;

    /** 机构 */
            @ApiModelProperty(value = "机构")
    private Long orgId;

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


                .append("id" ,getId())


                .append("createTime" ,getCreateTime())


                .append("modifiedId" ,getModifiedId())


                .append("modifiedName" ,getModifiedName())


                .append("updateTime" ,getUpdateTime())


                .append("closeCount" ,getCloseCount())


                .append("month" ,getMonth())


                .append("openCount" ,getOpenCount())


                .append("orgId" ,getOrgId())
        .toString();
        }
        }
