|
|
@@ -0,0 +1,219 @@
|
|
|
+package com.its.api.op.model.dto.link;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import com.its.api.op.model.entity.link.TbTrfcPrcnStat;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.*;
|
|
|
+
|
|
|
+import javax.validation.constraints.Positive;
|
|
|
+import javax.validation.constraints.Size;
|
|
|
+import java.io.Serializable;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 교통 가공 통계 DTO Class
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@Builder
|
|
|
+@ApiModel("TbTrfcPrcnStatDto(교통 가공 통계)")
|
|
|
+public class TbTrfcPrcnStatDto implements Serializable {
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @ApiModelProperty("가공 일시") // N VARCHAR(14)
|
|
|
+ @JsonProperty("prcn_dt")
|
|
|
+ private String prcnDt;
|
|
|
+
|
|
|
+ @ApiModelProperty("결측 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("miss_num")
|
|
|
+ private Integer missNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("보정 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("adjs_num")
|
|
|
+ private Integer adjsNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("평활화 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("smth_num")
|
|
|
+ private Integer smthNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("링크 원활 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("link_ligt_num")
|
|
|
+ private Integer linkLigtNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("링크 지체 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("link_dely_num")
|
|
|
+ private Integer linkDelyNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("링크 정체 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("link_cngs_num")
|
|
|
+ private Integer linkCngsNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("정보제공구간 원활 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("ifsc_ligt_num")
|
|
|
+ private Integer ifscLigtNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("정보제공구간 지체 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("ifsc_dely_num")
|
|
|
+ private Integer ifscDelyNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("정보제공구간 정체 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("ifsc_cngs_num")
|
|
|
+ private Integer ifscCngsNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("도로 원활 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("road_ligt_num")
|
|
|
+ private Integer roadLigtNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("도로 지체 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("road_dely_num")
|
|
|
+ private Integer roadDelyNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("도로 정체 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("road_cngs_num")
|
|
|
+ private Integer roadCngsNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("VMS 정보제공구간 원활 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("vms_ifsc_ligt_num")
|
|
|
+ private Integer vmsIfscLigtNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("VMS 정보제공구간 지체 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("vms_ifsc_dely_num")
|
|
|
+ private Integer vmsIfscDelyNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("VMS 정보제공구간 정체 개수") // Y NUMBER(7)
|
|
|
+ @JsonProperty("vms_ifsc_cngs_num")
|
|
|
+ private Integer vmsIfscCngsNum;
|
|
|
+
|
|
|
+ // Code Description Field
|
|
|
+ @ApiModel("TbTrfcPrcnStatUpdReq(교통 가공 통계 정보변경)")
|
|
|
+ @Getter
|
|
|
+ @Setter
|
|
|
+ @ToString
|
|
|
+ @NoArgsConstructor(access = AccessLevel.PROTECTED)
|
|
|
+ public static class TbTrfcPrcnStatUpdReq {
|
|
|
+
|
|
|
+ @ApiModelProperty("가공 일시, Nullable = N, VARCHAR(14)") // N VARCHAR(14)
|
|
|
+ @JsonProperty("prcn_dt")
|
|
|
+ @Size(min=1, max=14)
|
|
|
+ private String prcnDt;
|
|
|
+
|
|
|
+ @ApiModelProperty("결측 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("miss_num")
|
|
|
+ @Positive
|
|
|
+ private Integer missNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("보정 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("adjs_num")
|
|
|
+ @Positive
|
|
|
+ private Integer adjsNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("평활화 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("smth_num")
|
|
|
+ @Positive
|
|
|
+ private Integer smthNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("링크 원활 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("link_ligt_num")
|
|
|
+ @Positive
|
|
|
+ private Integer linkLigtNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("링크 지체 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("link_dely_num")
|
|
|
+ @Positive
|
|
|
+ private Integer linkDelyNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("링크 정체 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("link_cngs_num")
|
|
|
+ @Positive
|
|
|
+ private Integer linkCngsNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("정보제공구간 원활 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("ifsc_ligt_num")
|
|
|
+ @Positive
|
|
|
+ private Integer ifscLigtNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("정보제공구간 지체 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("ifsc_dely_num")
|
|
|
+ @Positive
|
|
|
+ private Integer ifscDelyNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("정보제공구간 정체 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("ifsc_cngs_num")
|
|
|
+ @Positive
|
|
|
+ private Integer ifscCngsNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("도로 원활 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("road_ligt_num")
|
|
|
+ @Positive
|
|
|
+ private Integer roadLigtNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("도로 지체 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("road_dely_num")
|
|
|
+ @Positive
|
|
|
+ private Integer roadDelyNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("도로 정체 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("road_cngs_num")
|
|
|
+ @Positive
|
|
|
+ private Integer roadCngsNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("VMS 정보제공구간 원활 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("vms_ifsc_ligt_num")
|
|
|
+ @Positive
|
|
|
+ private Integer vmsIfscLigtNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("VMS 정보제공구간 지체 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("vms_ifsc_dely_num")
|
|
|
+ @Positive
|
|
|
+ private Integer vmsIfscDelyNum;
|
|
|
+
|
|
|
+ @ApiModelProperty("VMS 정보제공구간 정체 개수, Nullable = Y, NUMBER(7)") // Y NUMBER(7)
|
|
|
+ @JsonProperty("vms_ifsc_cngs_num")
|
|
|
+ @Positive
|
|
|
+ private Integer vmsIfscCngsNum;
|
|
|
+
|
|
|
+ @Builder
|
|
|
+ public TbTrfcPrcnStatUpdReq(String prcn_dt, Integer miss_num, Integer adjs_num, Integer smth_num, Integer link_ligt_num, Integer link_dely_num, Integer link_cngs_num, Integer ifsc_ligt_num, Integer ifsc_dely_num, Integer ifsc_cngs_num, Integer road_ligt_num, Integer road_dely_num, Integer road_cngs_num, Integer vms_ifsc_ligt_num, Integer vms_ifsc_dely_num, Integer vms_ifsc_cngs_num) {
|
|
|
+ this.prcnDt = prcn_dt;
|
|
|
+ this.missNum = miss_num;
|
|
|
+ this.adjsNum = adjs_num;
|
|
|
+ this.smthNum = smth_num;
|
|
|
+ this.linkLigtNum = link_ligt_num;
|
|
|
+ this.linkDelyNum = link_dely_num;
|
|
|
+ this.linkCngsNum = link_cngs_num;
|
|
|
+ this.ifscLigtNum = ifsc_ligt_num;
|
|
|
+ this.ifscDelyNum = ifsc_dely_num;
|
|
|
+ this.ifscCngsNum = ifsc_cngs_num;
|
|
|
+ this.roadLigtNum = road_ligt_num;
|
|
|
+ this.roadDelyNum = road_dely_num;
|
|
|
+ this.roadCngsNum = road_cngs_num;
|
|
|
+ this.vmsIfscLigtNum = vms_ifsc_ligt_num;
|
|
|
+ this.vmsIfscDelyNum = vms_ifsc_dely_num;
|
|
|
+ this.vmsIfscCngsNum = vms_ifsc_cngs_num;
|
|
|
+ }
|
|
|
+
|
|
|
+ public TbTrfcPrcnStat toEntity() {
|
|
|
+ TbTrfcPrcnStat entity = TbTrfcPrcnStat.builder()
|
|
|
+ .prcnDt(this.prcnDt)
|
|
|
+ .missNum(this.missNum)
|
|
|
+ .adjsNum(this.adjsNum)
|
|
|
+ .smthNum(this.smthNum)
|
|
|
+ .linkLigtNum(this.linkLigtNum)
|
|
|
+ .linkDelyNum(this.linkDelyNum)
|
|
|
+ .linkCngsNum(this.linkCngsNum)
|
|
|
+ .ifscLigtNum(this.ifscLigtNum)
|
|
|
+ .ifscDelyNum(this.ifscDelyNum)
|
|
|
+ .ifscCngsNum(this.ifscCngsNum)
|
|
|
+ .roadLigtNum(this.roadLigtNum)
|
|
|
+ .roadDelyNum(this.roadDelyNum)
|
|
|
+ .roadCngsNum(this.roadCngsNum)
|
|
|
+ .vmsIfscLigtNum(this.vmsIfscLigtNum)
|
|
|
+ .vmsIfscDelyNum(this.vmsIfscDelyNum)
|
|
|
+ .vmsIfscCngsNum(this.vmsIfscCngsNum)
|
|
|
+ .build();
|
|
|
+
|
|
|
+ return entity;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|