BusinessFileService.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /**
  2. *
  3. */
  4. package com.chinaitop.depot.business.service;
  5. import java.util.List;
  6. import org.springframework.web.multipart.MultipartFile;
  7. import com.chinaitop.depot.business.model.BusinessFile;
  8. import com.chinaitop.depot.business.model.BusinessFileExample;
  9. /**
  10. * <p>Title: BusinessFile</p>
  11. * <p>Description: </p>
  12. * @author yaoyabin
  13. * @date 2017年12月5日 下午2:26:58
  14. */
  15. public interface BusinessFileService {
  16. /**
  17. * @param businessFile
  18. */
  19. int save(BusinessFile businessFile);
  20. /**
  21. * 通过条件获取list.
  22. * @param bid
  23. * @param fileType
  24. * @param orgId
  25. * @param order
  26. * @return
  27. */
  28. List<BusinessFile> getByBid(Integer bid, String fileType, Integer orgId, String order);
  29. /**
  30. * @param id
  31. * @param rootPath
  32. */
  33. void remove(Integer id, String rootPath);
  34. /**
  35. * 根据bid删除附件.
  36. * @param bid
  37. * @param rootPath
  38. */
  39. void removeByBid(Integer bid, String rootPath);
  40. /**
  41. * 根据fileId数组字符串删除文件.
  42. * @param fileIds 数组字符串,如:[1,2,3]
  43. */
  44. void deleteFileByFileIdArrayString(String fileIds);
  45. /**
  46. * 修改fileIds数组字符串对应数据的bid.
  47. * @param fileIds 数组字符串,如:[1,2,3]
  48. * @param bid
  49. */
  50. void updateFileByFileIdsAndBid(String fileIds, String bid, String fileType);
  51. /**
  52. * @param userInfo
  53. * @param bid
  54. * @param type
  55. * @param file
  56. * @return
  57. */
  58. BusinessFile uploadFile(MultipartFile file, String type, Integer bid, Integer userId,Integer orgId);
  59. List<BusinessFile> selectByExample(BusinessFileExample example);
  60. }