Commit 2f7e915d authored by hanbing's avatar hanbing

[update] 更新方案管理-运行计划数据结构

parent 170f2203
...@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty; ...@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
...@@ -35,6 +36,8 @@ public class RunningPlanDTO { ...@@ -35,6 +36,8 @@ public class RunningPlanDTO {
@NoArgsConstructor @NoArgsConstructor
@Data @Data
public static class TimeListElement { public static class TimeListElement {
@ApiModelProperty(value = "时段ID", required = true)
private Integer sectionId;
@ApiModelProperty(value = "开始时间", required = true) @ApiModelProperty(value = "开始时间", required = true)
private String startTime; private String startTime;
@ApiModelProperty(value = "结束时间", required = true) @ApiModelProperty(value = "结束时间", required = true)
...@@ -43,6 +46,8 @@ public class RunningPlanDTO { ...@@ -43,6 +46,8 @@ public class RunningPlanDTO {
private String[] startEndTime; private String[] startEndTime;
@ApiModelProperty(value = "方案名", required = true) @ApiModelProperty(value = "方案名", required = true)
private String schemeName; private String schemeName;
@ApiModelProperty(value = "被删除的时段ID", required = true)
private List<Integer> deletedSectionIds = new ArrayList<>();
} }
@NoArgsConstructor @NoArgsConstructor
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<id column="planNo" property="planNo"/> <id column="planNo" property="planNo"/>
<result column="name" property="name"/> <result column="name" property="name"/>
<collection property="timeList" ofType="net.wanji.databus.dto.RunningPlanDTO$TimeListElement"> <collection property="timeList" ofType="net.wanji.databus.dto.RunningPlanDTO$TimeListElement">
<result column="sectionId" property="sectionId"/>
<result column="startTime" property="startTime"/> <result column="startTime" property="startTime"/>
<result column="endTime" property="endTime"/> <result column="endTime" property="endTime"/>
<result column="schemeName" property="schemeName"/> <result column="schemeName" property="schemeName"/>
...@@ -45,6 +46,7 @@ ...@@ -45,6 +46,7 @@
SELECT SELECT
t1.plan_no as planNo, t1.plan_no as planNo,
t1.name as name, t1.name as name,
t2.id as sectionId,
t2.start_time as startTime, t2.start_time as startTime,
t2.end_time as endTime, t2.end_time as endTime,
t3.name as schemeName t3.name as schemeName
......
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