| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- package com.its.op.model.dto.database;
- import com.its.op.global.CodeManager;
- import com.its.op.global.NodeManager;
- import com.its.op.model.entity.database.Ifsc;
- import lombok.*;
- import java.io.Serializable;
- public class IfscDto implements Serializable {
- @Getter
- public static class IfscInfo {
- private final Long IFSC_ID; // N NUMBER(10) N 정보제공구간 ID
- private final String IFSC_NM; // N VARCHAR2(100) Y 정보제공구간 명
- private final String DRCT_CD; // N VARCHAR2(7) Y 방향 코드
- private final String STRT_NM; // N VARCHAR2(100) Y 시점 명
- private final String END_NM; // N VARCHAR2(100) Y 종점 명
- private final Integer SECT_LNGT; // N NUMBER(5) Y 0 구간 길이
- private final String EXTR_CNCT_SECT_YN; // N CHAR(1) Y 'N' 외부 연계 구간 여부
- private final String RMRK; // N VARCHAR2(600) Y 비고
- private final Long F_NODE_ID; // N NUMBER(10) Y 시작 노드 ID
- private final Long T_NODE_ID; // N NUMBER(10) Y 종료 노드 ID
- private final String SECT_GRAD_CD; // N VARCHAR2(7) Y 구간 등급 코드
- private final String AREA_CD; // N VARCHAR2(7) Y 지역 코드
- private final String DEL_YN; // N CHAR(1) Y 'N' 삭제 여부
- private final String FROM_NODE;
- private final String TO_NODE;
- private final String DRCT_CD_DESC;
- private final String SECT_GRAD_CD_DESC;
- public IfscInfo(Ifsc entity) {
- this.IFSC_ID = entity.getIFSC_ID();
- this.IFSC_NM = entity.getIFSC_NM();
- this.DRCT_CD = entity.getDRCT_CD();
- this.STRT_NM = entity.getSTRT_NM();
- this.END_NM = entity.getEND_NM();
- this.SECT_LNGT = entity.getSECT_LNGT();
- this.EXTR_CNCT_SECT_YN = entity.getEXTR_CNCT_SECT_YN();
- this.RMRK = entity.getRMRK();
- this.F_NODE_ID = entity.getF_NODE_ID();
- this.T_NODE_ID = entity.getT_NODE_ID();
- this.SECT_GRAD_CD = entity.getSECT_GRAD_CD();
- this.AREA_CD = entity.getAREA_CD();
- this.DEL_YN = entity.getDEL_YN();
- this.FROM_NODE = NodeManager.getNodeName(this.F_NODE_ID);
- this.TO_NODE = NodeManager.getNodeName(this.T_NODE_ID);
- this.DRCT_CD_DESC = CodeManager.getCodeDesc(CodeManager.DRCT_CD, this.DRCT_CD);
- this.SECT_GRAD_CD_DESC = CodeManager.getCodeDesc(CodeManager.SECT_GRAD_CD, this.SECT_GRAD_CD);
- }
- }
- @Getter
- @Setter
- @ToString
- @NoArgsConstructor(access = AccessLevel.PROTECTED)
- public static class IfscNameUpdateReq {
- private String IFSC_NM;
- private String STRT_NM;
- private String END_NM;
- @Builder
- public IfscNameUpdateReq(String IFSC_NM, String STRT_NM, String END_NM) {
- this.IFSC_NM = IFSC_NM;
- this.STRT_NM = STRT_NM;
- this.END_NM = END_NM;
- }
- }
- }
|