# OvertimeSum.java

    package cloud.wconnect.workperformance.entity.mor;

    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.*;
    import lombok.experimental.Accessors;

    import java.io.Serializable;

    /**
     * <p>
     * 每月加班金额汇总
     * </p>
     *
     * @author zc
     * @since 2023-04-01
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("mor_overtime_sum")
    public class OvertimeSum implements Serializable {

        private static final long serialVersionUID = 1L;

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

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

        /**
         * 类型 1：overtime  2：sales
         */
        private Integer type;

        public final static int TYPE_OVERTIME = 1;
        public final static int TYPE_SALES = 2;

        /**
         * 年
         */
        private Integer theYear;

        /**
         * 详细信息json，类型1的存：{“year”：“年”，"yearTotal"："年汇总金额"，“monthList”：“12月中每个月的金额以及每个月的部门金额信息”}，类型2的存：{"yearTotalDollars"："年汇总金额"}
         */
        private String detail;

    }