# PlLayoutValidation.java

    package cloud.wconnect.finance.entity.pl;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableName;
    import java.io.Serializable;
    import lombok.Getter;
    import lombok.Setter;
    import lombok.ToString;
    import lombok.experimental.Accessors;

    /**
     * <p>
     * P&L功能Layout.xls公式验证表
     * </p>
     *
     * @author lichen
     * @since 2026-03-16
     */
    @Getter
    @Setter
    @ToString
    @Accessors(chain = true)
    @TableName("pl_layout_validation")
    public class PlLayoutValidation implements Serializable {

        private static final long serialVersionUID = 1L;

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

        /**
         * 租户id
         */
        private Integer tenantId;

        /**
         * 租户id
         */
        private Integer propertyId;

        /**
         * 类型 1：一组GLAccount的Trial Balance Sum 2: 一组Row的Trial Balance Sum
         */
        private Integer type;

        /**
         * type等于1时，此值为{“start”:4000,"end":7999}；type等于2时，此值为['1:53','17:22','20:121']
         */
        private String variables;

        /**
         * 一组GLAccount的Trial Balance(PTD) Sum
         */
        public static final Integer TYPE_GL_ACCOUNT_PTD_SUM = 1;
        /**
         * 一组Row的Trial Balance(PTD) Sum
         */
        public static final Integer TYPE_ROW_PTD_SUM = 2;
    }