e76465caa756089cd0fc1e57ec8ad94132337583.svn-base 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. package cn.com.goldenwater.dcproj.service;
  2. import cn.com.goldenwater.core.service.CrudService;
  3. import cn.com.goldenwater.dcproj.dto.*;
  4. import cn.com.goldenwater.dcproj.model.BisInspPblm;
  5. import cn.com.goldenwater.dcproj.model.BisInspPblmDelLog;
  6. import cn.com.goldenwater.dcproj.model.KeyRegPblm;
  7. import cn.com.goldenwater.dcproj.model.WagaTotal;
  8. import cn.com.goldenwater.dcproj.param.*;
  9. import com.github.pagehelper.PageInfo;
  10. import org.springframework.web.multipart.MultipartFile;
  11. import javax.servlet.http.HttpServletResponse;
  12. import java.io.IOException;
  13. import java.util.Date;
  14. import java.util.List;
  15. /**
  16. * @author lune
  17. * @date 2019-2-19
  18. */
  19. public interface BisInspPblmService extends CrudService<BisInspPblm, BisInspPblmParam> {
  20. PageInfo<BisInspPblm> listOfPage(BisInspPblmParam pblmParam);
  21. /**
  22. * 通用问题导出接口
  23. *
  24. * @param pblmParam 问题筛选参数
  25. * @param response response
  26. */
  27. void exportPblmForExcel(PblmParam pblmParam, HttpServletResponse response);
  28. public KeyRegPblm convertRegPblm(KeyRegPblm baseDtos);
  29. void updateStateByObjId(String objId, String state);
  30. /**
  31. * 添加问题
  32. *
  33. * @param bisInspPblm 问题数据
  34. */
  35. void insertPblms(BisInspPblm bisInspPblm);
  36. /**
  37. * 更新问题
  38. *
  39. * @param bisInspPblm 问题数据
  40. * @return 返回成功状态
  41. */
  42. int updatePblm(BisInspPblm bisInspPblm);
  43. PageInfo<BisInspPblm> findPageList(PlbmParam plbmParam);
  44. // ------------------------- 自定方法 -------------------------
  45. public PageInfo<BisInspPblm> queryListByPage(BisInspPblmParam p) throws Exception;
  46. public List<BisInspPblm> queryList(BisInspPblmParam p) throws Exception;
  47. List<CountType> countByType(String presId, String adCode, String orgId);
  48. /**
  49. * 小水库问题-新
  50. */
  51. PageInfo<BisInspPblm> findReverPlbmList(ReverParam reverParam);
  52. /**
  53. * 人饮问题-新
  54. */
  55. PageInfo<BisInspPblm> findVillPlbmList(VillParam villParam);
  56. /**
  57. * 水毁问题-新
  58. */
  59. PageInfo<BisInspPblm> findTrackPlbmList(TrackParam trackParam);
  60. BisInspPblmDelLog insertPblmLog(BisInspPblmDelLogDto bisInspPblmDelLogDto);
  61. PageInfo<BisInspPblm> findWaterPlbmList(UnderWaterParam waterParam);
  62. PageInfo<PblmRetCount> countByReverPage(CountParam countParam);
  63. PageInfo<VillCount> countByVillPage(CountParam countParam);
  64. public PageInfo<TrackCount> countByTrackPage(CountParam countParam);
  65. public void setValue(TrackCount trackCount, TrackTypeCount typeCount);
  66. public void setVillValue(VillCount villCount, VillTypeCount typeCount, String type);
  67. /**
  68. * 获取问题所在的县数量
  69. */
  70. List<VillCount> findVillPblmBYAreaId(String areaId, String persId, String orgId, String pType);
  71. List<TrackCount> findTrackPblmBYAreaId(String areaId, String persId, String orgId);
  72. PageInfo<BisInspPblm> findWagaPlbmList(WagaParam wagaParam);
  73. PageInfo<KeyRegPblm> findKeyRegPlbmList(KeyRegPatam keyRegPatam);
  74. /**
  75. * 水闸问题统计
  76. */
  77. PageInfo<PblmRetCount> countByWagaPage(CountParam countParam);
  78. /**
  79. * 统计172工程问题
  80. */
  81. PageInfo<PblmRetCount> countByKeyRegPage(CountParam countParam);
  82. /**
  83. * 流域机构下查询172工程问题
  84. */
  85. List<PblmRetCount> findKeyRegBYAreaId(String pType, String persId, String orgId);
  86. /**
  87. * 流域下小水闸统计
  88. */
  89. List<WagaTotal> findWagaPblmBYAreaId(String s, String persId, String orgId);
  90. PageInfo<BisInspPblm> findSdPblmList(SdPblmParam param);
  91. PageInfo<PblmRetCount> countBySdPage(CountParam countParam);
  92. List<PblmRole> findPblmByPersId(String persId, String currentOrgId);
  93. PageInfo<PblmRetCount> countBySwhsPage(CountParam countParam);
  94. PageInfo<BisInspPblm> findPblmList(PblmParam param);
  95. List<BisInspPblm> pblmList(PblmParam param);
  96. List<String> findVillType(String currentOrgId);
  97. PageInfo<PblmRetCount> countByWiuPage(CountParam countParam);
  98. PageInfo<PblmRetCount> countByPrdPage(CountParam countParam);
  99. PageInfo<PblmRetCount> countByJsflPage(CountParam countParam);
  100. PageInfo<PblmRetCount> countByJswaPage(CountParam countParam);
  101. boolean havePblm(String value, String id);
  102. PageInfo<BisInspVo> pblmPage(BisInspVo bisInspVo);
  103. PageInfo<BisInspVo> pblmRectPage(BisInspVo bisInspVo);
  104. int updatePblmState(BisInspPblmParam pblmParam) throws Exception;
  105. List<BisInspPblm> getPblmList(String id, String type, String objId, String orgId);
  106. /**
  107. * 根据行政区代码和时间获取问题数据
  108. *
  109. * @param adCode
  110. * @param stTm
  111. * @param enTm
  112. * @return
  113. */
  114. BisInspTaskTotal getPblmListByTm(String adCode, String objType, Date stTm, Date enTm);
  115. List<String> getPblmPath(String pblmId);
  116. /**
  117. * 问题汇总功能增加外部问题导入
  118. * @param f
  119. */
  120. List<String> excelImport(MultipartFile f, String recPers) throws Exception;
  121. List<BisInspPblm> getPblmListFromImport(PblmParam param);
  122. void batchDelete(List<PblmParam> param);
  123. }