a-tuoheng-airline/src/main/java/com/ruoyi/airline/mapper/entity/AirlineAreaTimeRuleEntity.java

77 lines
2.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.ruoyi.airline.mapper.entity;
import com.ruoyi.common.core.web.domain.ExBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 空域时间规则表 airline_area_time_rule
*
* @author 拓恒
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class AirlineAreaTimeRuleEntity extends ExBaseEntity {
/**
* 主键ID
*/
private Long id;
/**
* 空域ID
*/
private Long areaId;
/**
* 限制类型0是永久 1单次2自定义
*/
private Integer restrictType;
/**
* 日期范围
*/
private String dateRange;
/**
* 时间范围
*/
private String timeRange;
/**
* 重复粒度值0,1,2:日,周,月 restrictType=0时生效
*/
private Integer granularity;
/**
* 粒度循环周期整数值每1天、每1周每1个月
*/
private Integer repetFrequency;
/**
* 重复粒度具体时间 granularity = 0时该值为空不生效granularity = 1时granularityTimes最多7个值1,2,3,4,5,6,7分别周一周二。。。周日granularity = 2时granularityTimes最多12个值1,2,3,4,5,6,7。。12分别是1月2月.。。12月
*/
private String granularityTimes;
/**
* 备注
*/
private String remark;
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("areaId", getAreaId())
.append("restrictType", getRestrictType())
.append("dateRange", getDateRange())
.append("timeRange", getTimeRange())
.append("granularity", getGranularity())
.append("repetFrequency", getRepetFrequency())
.append("granularityTimes", getGranularityTimes())
.append("remark", getRemark())
.toString();
}
}