public void deleteDictItemById(long dictItemId) throws SystemException, NoSuchDictItemException {
  List<DictItem> dictItems=dictItemPersistence.findByTreeIndex(dictItemId + StringPool.PERIOD);
  if (dictItems == null || dictItems.isEmpty()) {
    dictItemPersistence.remove(dictItemId);
  }
}

public void deleteDictItemById ( long dictItemId ) throws SystemException , NoSuchDictItemException { List < DictItem > dictItems = dictItemPersistence . findByTreeIndex ( dictItemId + StringPool . PERIOD ) ; if ( dictItems == null || dictItems . isEmpty ( ) ) { dictItemPersistence . remove ( dictItemId ) ; } }
< p > phuong thu xoa dictitem theo dictitemid . neu dictitem co cap con thi khong xoa
