package com.its.op.dto.its.statistics;

import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@ApiModel(description = "시간대검색 파라미터")
public class TrafficHourParam extends QueryCondParam {
    private String ID;
    private String FROM_DT;
    private String TO_DT;
    private String FROM_HM;     // HH+0000
    private String TO_HM;       // HH+5959

    public TrafficHourParam(String ID, String FROM_DT, String TO_DT, String FROM_HM, String TO_HM) {
        this.ID = ID;
        this.FROM_DT = FROM_DT;
        this.TO_DT = TO_DT;
        this.FROM_HM = FROM_HM;
        this.TO_HM = TO_HM;
        if (this.FROM_HM.length() == 2) {
            this.FROM_HM = this.FROM_HM + "0000";
        }
        if (this.TO_HM.length() == 2) {
            this.TO_HM = this.TO_HM + "5959";
        }
    }
}
