OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-11-10 6cbfebcada8b005e601b16e500e67fb3846075c3
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();
    }