a311636d1f1496621ed16f997df1ee66fecd2c10.svn-base 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. List<GwComFile> findLongFileExt();
  33. /**
  34. * 根据 bizId 获取前n条近期面貌
  35. *
  36. * @param bizId
  37. * @param n
  38. * @return
  39. */
  40. List<GwComFile> getImgByBizId(String bizId, int n);
  41. /**
  42. * 根据参数获取前n条近期面貌
  43. *
  44. * @param n
  45. * @param adCode
  46. * @param pType
  47. * @param currentAdCode
  48. * @return
  49. */
  50. List<GwComFile> getTopNFace(String n, String adCode, String pType, String currentAdCode);
  51. /**
  52. * 根据参数获取前n条近期问题图片
  53. *
  54. * @param n
  55. * @param adCode
  56. * @param pType
  57. * @param currentAdCode
  58. * @return
  59. */
  60. List<GwComFile> getTopNPblm(String n, String adCode, String pType, String currentAdCode);
  61. /**
  62. * 根据参数获取前n条近期问题视频
  63. *
  64. * @param n
  65. * @param adCode
  66. * @param pType
  67. * @param currentAdCode
  68. * @return
  69. */
  70. List<GwComFile> getTopNPblmVido(String n, String adCode, String pType, String currentAdCode);
  71. /**
  72. * 根据参数获取前n条稽察问题资源
  73. *
  74. * @param n
  75. * @param province
  76. * @return
  77. */
  78. List<GwComFile> getTopTacPblm(String n, String province);
  79. /**
  80. * 根据参数获取前n条稽察问题视频
  81. *
  82. * @param n
  83. * @param province
  84. * @return
  85. */
  86. List<GwComFile> getTopTacPblmVideo(String n, String province);
  87. /**
  88. * 查询所有关联的file
  89. *
  90. * @param gwComFileParam
  91. * @return
  92. */
  93. List<GwComFile> findAllFile(GwComFileParam gwComFileParam);
  94. void getpicInfo() throws IOException;
  95. String toWsdlPushData(GwComFileParam gwComFileParam);
  96. }