package com.njcn.rdms.module.project.dal.dataobject.workreport.weekly;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.rdms.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 周报出差分段。
 */
@TableName("rdms_work_report_weekly_report_travel_segment")
@Data
@EqualsAndHashCode(callSuper = true)
public class WeeklyReportTravelSegmentDO extends BaseDO {

    @TableId
    private Long id;

    private Long weeklyReportId;

    @TableField("sort")
    private Integer sort;

    private LocalDate startDate;

    private LocalDate endDate;

    private BigDecimal travelDays;

    private String location;
}
