6fa005186033e0185a19e4e6cb038b841fc2f00a.svn-base 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. package cn.com.goldenwater.dcproj.service;
  2. import cn.com.goldenwater.core.service.CrudService;
  3. import cn.com.goldenwater.dcproj.model.GwComFile;
  4. import cn.com.goldenwater.dcproj.param.GwComFileParam;
  5. import com.github.pagehelper.PageInfo;
  6. import org.springframework.web.multipart.MultipartFile;
  7. import javax.servlet.http.HttpServletResponse;
  8. import java.io.IOException;
  9. import java.util.Date;
  10. import java.util.List;
  11. /**
  12. * @author zhaohg
  13. * @date 2019-2-18
  14. */
  15. public interface GwComFileService extends CrudService<GwComFile, GwComFileParam> {
  16. /**
  17. * 更新问题多媒体状态
  18. *
  19. * @param pblmId
  20. */
  21. void updatePblmVedio(String pblmId);
  22. int countByPblmId(String pblmId);
  23. boolean writeFile(GwComFile gwComFile, MultipartFile file, String filePath);
  24. boolean writeFile(String id, String ext, MultipartFile file, String filePath);
  25. List<GwComFile> findFileByBiz(String bizId);
  26. public void updateBiz(List<GwComFile> gwComFiles, String bizId);
  27. public void updateTopById(String bizId);
  28. PageInfo<GwComFile> findFilePageByBiz(GwComFileParam comFileParam);
  29. PageInfo<GwComFile> findImgPage(GwComFileParam comFileParam);
  30. public void changeSmallImg(String year, String mnth);
  31. int downFile(GwComFile gwComFile, HttpServletResponse response);
  32. String getFilePath(String filePath);
  33. List<GwComFile> findLongFileExt();
  34. /**
  35. * 根据 bizId 获取前n条近期面貌
  36. *
  37. * @param bizId
  38. * @param n
  39. * @return
  40. */
  41. List<GwComFile> getImgByBizId(String bizId, int n);
  42. /**
  43. * 根据参数获取前n条近期面貌
  44. *
  45. * @param n
  46. * @param adCode
  47. * @param pType
  48. * @param currentAdCode
  49. * @return
  50. */
  51. List<GwComFile> getTopNFace(String n, String adCode, String pType, String currentAdCode);
  52. /**
  53. * 根据参数获取前n条近期问题图片
  54. *
  55. * @param n
  56. * @param adCode
  57. * @param pType
  58. * @param currentAdCode
  59. * @return
  60. */
  61. List<GwComFile> getTopNPblm(String n, String adCode, String pType, String currentAdCode);
  62. /**
  63. * 根据参数获取前n条近期问题视频
  64. *
  65. * @param n
  66. * @param adCode
  67. * @param pType
  68. * @param currentAdCode
  69. * @return
  70. */
  71. List<GwComFile> getTopNPblmVido(String n, String adCode, String pType, String currentAdCode);
  72. /**
  73. * 根据参数获取前n条稽察问题资源
  74. *
  75. * @param n
  76. * @param province
  77. * @return
  78. */
  79. List<GwComFile> getTopTacPblm(String n, String province);
  80. /**
  81. * 根据参数获取前n条稽察问题视频
  82. *
  83. * @param n
  84. * @param province
  85. * @return
  86. */
  87. List<GwComFile> getTopTacPblmVideo(String n, String province);
  88. /**
  89. * 查询所有关联的file
  90. *
  91. * @param gwComFileParam
  92. * @return
  93. */
  94. List<GwComFile> findAllFile(GwComFileParam gwComFileParam);
  95. void getpicInfo() throws IOException;
  96. String toWsdlPushData(GwComFileParam gwComFileParam);
  97. }