feat : 신문고 디비폴링 추가작업
parent
244394d55f
commit
5396c522bf
@ -0,0 +1,29 @@
|
||||
package com.worker.util.common.commEnum;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum TakeSeCdEnum {
|
||||
|
||||
|
||||
AJSMG("1741000","120"), //안전신문고 (안씀)
|
||||
GMSMG("1140100","183"), //국민신문고
|
||||
POLIC("1320000","130"), //경창청
|
||||
ETC("", "181") //기타
|
||||
;
|
||||
|
||||
private String petiAncCodeV;
|
||||
private String takeSeCd;
|
||||
|
||||
public static String findTakeSeCd(String petiAncCodeV) {
|
||||
for (TakeSeCdEnum value : TakeSeCdEnum.values()) {
|
||||
if (value.getPetiAncCodeV().equals(petiAncCodeV)) {
|
||||
return value.getTakeSeCd();
|
||||
}
|
||||
}
|
||||
return ETC.getTakeSeCd();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue