代码调整
This commit is contained in:
parent
fe7fa3da8a
commit
54753177dd
@ -23,33 +23,33 @@ import lombok.experimental.Accessors;
|
||||
@Schema(name = "AlertTipTimeConfig", description = "$!{table.comment}")
|
||||
public class AlertTipTimeConfig {
|
||||
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "名称")
|
||||
private String timeName;
|
||||
// @Schema(description = "名称")
|
||||
// private String timeName;
|
||||
|
||||
@Schema(description = "开始小时数")
|
||||
private Byte startHour;
|
||||
@Schema(description = "开始小时数")
|
||||
private Byte startHour;
|
||||
|
||||
@Schema(description = "结束小时数")
|
||||
private Byte endHour;
|
||||
@Schema(description = "结束小时数")
|
||||
private Byte endHour;
|
||||
|
||||
@Schema(description = "时间配置类型")
|
||||
private String timeType;
|
||||
@Schema(description = "时间配置类型")
|
||||
private String timeType;
|
||||
|
||||
@Schema(description = "公休日是否高峰0=否;1=是")
|
||||
private Byte publicPeak;
|
||||
@Schema(description = "公休日是否高峰0=否;1=是")
|
||||
private Byte publicPeak;
|
||||
|
||||
public static final String ID = "id";
|
||||
public static final String ID = "id";
|
||||
|
||||
public static final String TIME_NAME = "time_name";
|
||||
// public static final String TIME_NAME = "time_name";
|
||||
|
||||
public static final String START_HOUR = "start_hour";
|
||||
public static final String START_HOUR = "start_hour";
|
||||
|
||||
public static final String END_HOUR = "end_hour";
|
||||
public static final String END_HOUR = "end_hour";
|
||||
|
||||
public static final String TIME_TYPE = "time_type";
|
||||
public static final String TIME_TYPE = "time_type";
|
||||
|
||||
public static final String PUBLIC_PEAK = "public_peak";
|
||||
public static final String PUBLIC_PEAK = "public_peak";
|
||||
}
|
||||
|
@ -70,6 +70,8 @@ public class AlertTipService {
|
||||
entity.setId(saveDTO.getId());
|
||||
if (CollectionUtils.isNotEmpty(saveDTO.getTipTimeIds())) {
|
||||
entity.setTipTimeRef(Joiner.on(",").skipNulls().join(saveDTO.getTipTimeIds()));
|
||||
} else {
|
||||
entity.setTipTimeRef(null);
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user