OWL ITS + 탐지시스템(인터넷 진흥원)
wyu
2021-11-09 bea07d3ad5c832426680325f1112538feda04e50
src/main/java/kr/wisestone/owl/service/impl/CompanyFieldServiceImpl.java
@@ -104,6 +104,15 @@
            throw new OwlRuntimeException(
                    this.messageAccessor.getMessage(MsgConstants.COMPANY_REMOVE_NOT_SELECT));
        }
        for (Long id : companyFieldForm.getRemoveIds()) {
            if (!this.userService.useUserLevel(id)) {
                this.companyFieldRepository.deleteById(id);
            } else {
                throw new OwlRuntimeException(
                        this.messageAccessor.getMessage(MsgConstants.DEPARTMENT_ALREADY_IN_USE));
            }
        }
        this.companyFieldRepository.flush();
    }