OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-12-24 ca9b5f2ca3e6b4d15fc554ba4ce693cecaf0e881
src/main/java/kr/wisestone/owl/service/impl/HostingFieldServiceImpl.java
@@ -58,9 +58,13 @@
    // Hosting 추가
    @Override
    public HostingField add(HostingFieldForm HostingFieldForm) {
        HostingField HostingField = ConvertUtil.copyProperties(HostingFieldForm, HostingField.class);
        hostingFieldRepository.saveAndFlush(HostingField);
        return HostingField;
        HostingField hostingField = ConvertUtil.copyProperties(HostingFieldForm, HostingField.class);
        if (hostingField.getCode() != null && !hostingField.getCode().equals("")) {
            hostingFieldRepository.saveAndFlush(hostingField);
        } else {
            throw new OwlRuntimeException(this.messageAccessor.getMessage(MsgConstants.HOSTING_CODE_NOT_ENTER));
        }
        return hostingField;
    }
    // Hosting 목록을 가져온다.