public boolean deleteLogicByRecordId(Long recordId) { List<Long> ids = selectOrderImportDetailByRecordId(recordId) .stream() .map(orderImportDetail -> orderImportDetail.getId()) .collect(Collectors.toList()); return removeByIds(ids); }