|
@@ -119,6 +119,11 @@ public class TbLinkParaStupService {
|
|
|
if (paramId == 1) {
|
|
|
throw new NoSuchElementException("첫번째 파라미터 정보는 삭제할 수 없습니다.: " + paramId);
|
|
|
}
|
|
|
+ UsageCountDto usageCount = findUsageId(paramId);
|
|
|
+ if (usageCount.getCount() > 0) {
|
|
|
+ throw new ConcurrentModificationException("사용중인 파라미터 정보 입니다. 삭제할 수 없습니다: " + paramId);
|
|
|
+ }
|
|
|
+
|
|
|
TbLinkParaStupDto result = findById(paramId);
|
|
|
|
|
|
this.clctRepo.deleteDataById(paramId);
|