# WalkRoomApproveLevel.java

    package cloud.wconnect.frontoffice.entity.walkroomrequest;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;

    import java.io.Serializable;

    import lombok.*;
    import lombok.experimental.Accessors;

    /**
     * <p>
     * walk room审批层级表
     * </p>
     *
     * @author lichen
     * @since 2023-07-08
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public class WalkRoomApproveLevel implements Serializable {

        private static final long serialVersionUID = 1L;

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

        /**
         * 资产id
         */
        private Integer propertyId;

        /**
         * 审批层级索引
         */
        private Integer approveIndex;

        /**
         * 审批规则（0:任一，1:全部）
         */
        private Integer rule;

        /**
         * 类型1:Sent 2:Receive
         */
        private Integer type;

        /**
         * 描述
         */
        private String description;

        /**
         * 抄送人数组
         */
        private String cc;

        /**
         * 用资产id 和 审批类型 拼key
         *
         * @param propertyId  资产id
         * @param approveType 审批类型
         * @return java.lang.String
         * @author lichen
         * @date 2023/7/19
         */
        public static String generateKey(Integer propertyId, Integer approveType) {
            return propertyId.toString() + "_" + approveType.toString();
        }

    }