@Override
 public Resource findResById(String id) throws BadRequestBusinessException {
   if (id == null || "".equals(id.trim())) {
     throw new BadRequestBusinessException("失败,parameter为空");
   }
   Resource resource = resourceDao.findResById(id);
   resource.setResourceUrl(Constant.IMAGE_URL_COM + resource.getKeyWord());
   return resource;
 }
 @Override
 public void delete(List<String> ids) throws BadRequestBusinessException {
   logger.debug("ids" + ids);
   if (ids == null || ids.isEmpty() || ids.size() == 0) {
     throw new BadRequestBusinessException("失败,parameter为空");
   }
   for (String id : ids) {
     Resource res = resourceDao.findResById(id);
     String key = res.getKeyWord();
     boolean deleteStatus = uploadService.deleteFile(key);
     if (deleteStatus) {
       resourceTagDao.deleteByResourceId(id);
       resourceDao.delete(id);
     }
   }
 }