# DepartmentCategory.java

    package cloud.wconnect.workperformance.entity.sva.setting;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableField;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableName;
    import lombok.AllArgsConstructor;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.NoArgsConstructor;
    import lombok.experimental.Accessors;

    import java.io.Serializable;

    /**
     * <p>
     * 实体类：部门分类
     * </p>
     *
     * @author zc
     * @since 2023-02-22
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("sva_department_category_v2")
    @AllArgsConstructor
    @NoArgsConstructor
    public class DepartmentCategory implements Serializable {

        private static final long serialVersionUID = 1L;

        /**
         * 主键id
         */
        @TableId(value = "id", type = IdType.AUTO)
        private Integer id;

        /**
         * property id
         */
        @TableField("hotel_id")
        private Integer propertyId;

        /**
         * Category Name
         */
        private String name;

        public static final String DEFAULT_CATEGORY_NAME = "Miscellaneous";

        /**
         * 版本（yyyyMMdd）
         */
        private Integer version;

        /**
         * Category Type（1：静态；2：可配置）
         */
        private Integer type;

        /**
         * 创建人id
         */
        private Integer createdBy;

        /**
         * 创建时间
         */
        private Long createdTime;

        /**
         * 最近更新人id
         */
        private Integer lastUpdatedBy;

        /**
         * 最近更新时间
         */
        private Long lastUpdatedTime;

        /**
         * 上个版本的 id
         */
        @TableField(exist = false)
        private Integer lastVersionCategoryId;

        /**
         * 部门 code
         */
        @TableField(exist = false)
        private String departmentCode;

        public DepartmentCategory(Integer propertyId, String name, Integer version, Integer type, Integer createdBy, Long createdTime, Integer lastUpdatedBy, Long lastUpdatedTime) {
            this.propertyId = propertyId;
            this.name = name;
            this.version = version;
            this.type = type;
            this.createdBy = createdBy;
            this.createdTime = createdTime;
            this.lastUpdatedBy = lastUpdatedBy;
            this.lastUpdatedTime = lastUpdatedTime;
        }

    }