# DepCodeToCategory.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>
     * 实体类：dep code to category
     * </p>
     *
     * @author zc
     * @since 2023-02-23
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("sva_dep_code_to_category")
    public class DepCodeToCategory 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;

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

        /**
         * 部门编号
         */
        private String departmentCode;

        /**
         * 部门描述
         */
        private String departmentDesc;

        /**
         * 部门分类id
         */
        private Integer depCategoryId;

        public static final int DEPARTMENT_ID_NONE = 0;

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

        /**
         * 更新人id
         */
        private Integer updatedBy;

        /**
         * 更新时间
         */
        private Long updatedTime;

        /**
         * 部门分类名称
         */
        @TableField(exist = false)
        private String categoryName;

        /**
         * 有参构造函数
         *
         * @param propertyId     property id
         * @param version        版本（yyyyMMdd）
         * @param departmentCode 部门编号
         * @param departmentDesc 部门描述
         * @param depCategoryId  部门分类id
         * @param createdTime    创建时间
         * @author zc
         * @date 2023/2/27
         */
        public DepCodeToCategory(Integer propertyId, Integer version, String departmentCode, String departmentDesc, Integer depCategoryId, Long createdTime) {
            this.propertyId = propertyId;
            this.version = version;
            this.departmentCode = departmentCode;
            this.departmentDesc = departmentDesc;
            this.depCategoryId = depCategoryId;
            this.createdTime = createdTime;
        }
    }