|
|
|
@ -356,10 +356,10 @@ public class ApiConstants {
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
public static String fromTraffic(final String trfCode){
|
|
|
|
|
return Arrays.stream(MappingCcnSndngProcessStatus.values())
|
|
|
|
|
return Arrays.stream(MappingCanSndngProcessStatus.values())
|
|
|
|
|
.filter(en -> en.getTrfCode().equals(trfCode))
|
|
|
|
|
.findFirst()
|
|
|
|
|
.map(MappingCcnSndngProcessStatus::getEnsCode)
|
|
|
|
|
.map(MappingCanSndngProcessStatus::getEnsCode)
|
|
|
|
|
.orElseThrow(() -> BizRuntimeException.create(String.format("미정의된 상태코드가[%s]", trfCode)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -371,10 +371,10 @@ public class ApiConstants {
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
public static String fromEns(final String ensCode){
|
|
|
|
|
return Arrays.stream(MappingCcnSndngProcessStatus.values())
|
|
|
|
|
return Arrays.stream(MappingCanSndngProcessStatus.values())
|
|
|
|
|
.filter(en -> en.getEnsCode().equals(ensCode))
|
|
|
|
|
.findFirst()
|
|
|
|
|
.map(MappingCcnSndngProcessStatus::getTrfCode)
|
|
|
|
|
.map(MappingCanSndngProcessStatus::getTrfCode)
|
|
|
|
|
.orElseThrow(() -> BizRuntimeException.create(String.format("미정의된 상태코드가[%s]", ensCode)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|