# M3PlReportLog.java

    package cloud.wconnect.finance.entity.pl;

    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 java.io.Serializable;
    import lombok.Getter;
    import lombok.Setter;
    import lombok.ToString;
    import lombok.experimental.Accessors;

    /**
     * <p>
     * P&L功能生成log
     * </p>
     *
     * @author lichen
     * @since 2025-09-25
     */
    @Getter
    @Setter
    @ToString
    @Accessors(chain = true)
    @TableName("m3_pl_report_log")
    public class M3PlReportLog implements Serializable {

        private static final long serialVersionUID = 1L;

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

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

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

        /**
         * 月份，例如：202506
         */
        @TableField("`year_month`")
        private Integer yearMonth;

        /**
         * 创建人，0表示系统自动生成
         */
        private Integer createUserId;

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

        /**
         * 1：处理中 2：成功 3：失败
         */
        private Integer status;

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

        /**
         * 失败原因标识	1：调用M3接口失败	2：指标计算失败
         */
        private Integer messageFlag;

        public static final int MESSAGE_FLAG_CALL_M3_FAILED = 1;
        public static final int MESSAGE_FLAG_CALCULATE_FAILED = 2;

        public static final int STATUS_PROCESSING = 1;
        public static final int STATUS_SUCCESS = 2;
        public static final int STATUS_FAILED = 3;
    }