Commit cd882d04 authored by hanbing's avatar hanbing

[update] 修改获取当前计划逻辑

parent a88921c6
...@@ -527,7 +527,8 @@ public class CrossManageServiceImpl implements CrossManageService { ...@@ -527,7 +527,8 @@ public class CrossManageServiceImpl implements CrossManageService {
return planId; return planId;
} }
} }
} else if (CollectionUtil.isNotEmpty(week)) { }
if (CollectionUtil.isNotEmpty(week)) {
for (Integer day : week) { for (Integer day : week) {
// 1表示周日,2表示周一 // 1表示周日,2表示周一
int today = DateUtil.dayOfWeek(datetime); int today = DateUtil.dayOfWeek(datetime);
......
package net.wanji.opt.vo; package net.wanji.opt.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import java.util.Date;
import java.util.List;
/** /**
* @author Kent HAN * @author Kent HAN
* @date 2023/2/9 8:38 * @date 2023/2/9 8:38
...@@ -12,5 +17,44 @@ import lombok.NoArgsConstructor; ...@@ -12,5 +17,44 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor @NoArgsConstructor
@ApiModel(value = "RunningEvaluateMetricsDetailVO", description = "评价指标查询返回值") @ApiModel(value = "RunningEvaluateMetricsDetailVO", description = "评价指标查询返回值")
public class RunningEvaluateMetricsDetailVO { public class RunningEvaluateMetricsDetailVO {
@ApiModelProperty(value = "状态列表")
private List<ProblemStatus> problemStatusList;
@ApiModelProperty(value = "问题方案列表")
private List<ProblemScheme> schemeList;
// @ApiModelProperty(value = "指标列表")
// private List<CrossMetrics> metricsList;
@NoArgsConstructor
@Data
public static class ProblemStatus {
@ApiModelProperty(name = "路口状态 0正常 1 失衡 2 拥堵 3 溢出")
private String status;
@ApiModelProperty(value = "开始时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm", timezone = "GMT+8")
private Date startTime;
@ApiModelProperty(value = "结束时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm", timezone = "GMT+8")
private Date endTime;
@ApiModelProperty(value = "持续时长(分钟)")
private Integer durationMinutes;
}
@NoArgsConstructor
@Data
public static class ProblemScheme {
@ApiModelProperty(value = "方案名称")
private String patternName;
@ApiModelProperty(value = "开始时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm", timezone = "GMT+8")
private Date startTime;
@ApiModelProperty(value = "结束时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm", timezone = "GMT+8")
private Date endTime;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment