RemoteEventBaseService.java 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. package com.sooka.sponest.mobile.remoteapi;
  2. import com.ruoyi.common.core.domain.R;
  3. import com.ruoyi.common.core.web.domain.AjaxResult;
  4. import com.ruoyi.common.core.web.page.TableDataInfo;
  5. import com.sooka.sponest.mobile.appbigdata.domain.vo.VisuFireSendingSMSVo;
  6. import com.sooka.sponest.mobile.appbigdata.domain.vo.VisuForestCloudMapVO;
  7. import com.sooka.sponest.mobile.base.domain.ModulesServiceNameContants;
  8. import com.sooka.sponest.mobile.emergency.domain.CentereventTEmergencyInspectionrecordBdody;
  9. import com.sooka.sponest.mobile.emergency.domain.CentereventTEmergencyInspectionrecordBody;
  10. import com.sooka.sponest.mobile.emergency.domain.CentereventTEmergencyPatrolrecord;
  11. import com.sooka.sponest.mobile.event.domain.*;
  12. import com.sooka.sponest.mobile.remoteapi.factory.RemoteEventBaseServiceCenterFactory;
  13. import com.sooka.sponest.mobile.remoteapi.domain.CentereventTEmergencyInspectionrecord;
  14. import com.sooka.sponest.mobile.zhsq.shijian.domain.AppShijianFenleiVO;
  15. import com.sooka.sponest.mobile.zhsq.shijian.domain.AppShijianVO;
  16. import org.springframework.cloud.openfeign.FeignClient;
  17. import org.springframework.web.bind.annotation.*;
  18. import java.util.List;
  19. import java.util.Map;
  20. @FeignClient(contextId = "remoteEventService", value = ModulesServiceNameContants.CENTER_EVENT,
  21. fallbackFactory = RemoteEventBaseServiceCenterFactory.class, url = "${sooka.service.event}")
  22. public interface RemoteEventBaseService {
  23. @PostMapping("/eventcatalogue/sendingSMS")
  24. public AjaxResult firesendingSMSApp(@RequestBody VisuFireSendingSMSVo visuFireSendingSMSVo);
  25. @PostMapping("/eventcatalogue/reportFirePreventionOffice")
  26. public AjaxResult eventcatalogueApp(@RequestBody VisuFireSendingSMSVo visuFireSendingSMSVo);
  27. @PostMapping("/centereventtdeptevent")
  28. public AjaxResult remoteAdd(@RequestBody CentereventDeptEvent centereventTDeptEvent);
  29. /**
  30. * 事件状态统计
  31. *
  32. * @param visuForestCloudMapVO
  33. * @return com.ruoyi.common.core.domain.R
  34. * @author pengyu
  35. * @date 2023/2/22 9:55
  36. */
  37. @PostMapping("/eventapp/getEventCountGroupByEventStatus")
  38. public R getEventCountGroupByEventStatus(@RequestBody VisuForestCloudMapVO visuForestCloudMapVO);
  39. /***
  40. *乡村振兴事件类型--远端调用
  41. *
  42. * @return com.ruoyi.common.core.domain.R
  43. * @author pengyu
  44. * @date 2023/2/22 13:03
  45. **/
  46. @PostMapping("/eventapp/getEventCountGroupByEventType")
  47. public R getEventCountGroupByEventType(@RequestBody VisuForestCloudMapVO visuForestCloudMapVO);
  48. // ----------- APP事件中心远程调用 ------------
  49. /**
  50. * 手机端事件查询
  51. *
  52. * @param vo
  53. * @return com.ruoyi.common.core.web.domain.AjaxResult
  54. * @author pengyu
  55. * @date 2023/2/22 18:11
  56. **/
  57. //查询事件列表、新增、修改、详情、删除、分类、核查
  58. @PostMapping("/AppShijianController/listShijian")
  59. public AjaxResult listShijian(@RequestParam(value = "pageNum") Integer pageNum, @RequestParam(value = "pageSize") Integer pageSize, AppShijianVO vo);
  60. @PostMapping("/AppShijianController/listFenlei")
  61. public AjaxResult listFenlei(AppShijianFenleiVO vo);
  62. @PostMapping("/AppShijianController/listFenleiOne")
  63. public AjaxResult listFenleiOne(AppShijianFenleiVO vo);
  64. @PostMapping("/AppShijianController/listFenleiTwo")
  65. public AjaxResult listFenleiTwo(AppShijianFenleiVO vo);
  66. @PostMapping("/AppShijianController/listFenleiThree")
  67. public AjaxResult listFenleiThree(AppShijianFenleiVO vo);
  68. /**
  69. * 事件审核查询
  70. *
  71. * @param vo
  72. * @return com.ruoyi.common.core.web.domain.AjaxResult
  73. * @author pengyu
  74. * @date 2023/2/22 18:36
  75. **/
  76. @PostMapping("/AppShijianController/listCheck")
  77. public AjaxResult listCheck(@RequestParam(value = "pageNum") Integer pageNum, @RequestParam(value = "pageSize") Integer pageSize, AppShijianVO vo);
  78. /**
  79. * 事件上报
  80. *
  81. * @param vo
  82. * @return com.ruoyi.common.core.web.domain.AjaxResult
  83. * @author pengyu
  84. * @date 2023/2/22 17:07
  85. **/
  86. @PostMapping("/AppShijianController/addShijian")
  87. public AjaxResult addShijian(AppShijianVO vo);
  88. @PostMapping("/AppShijianController/updateShijian")
  89. public AjaxResult updateShijian(AppShijianVO vo);
  90. /**
  91. * 事件审核同意或不同意
  92. *
  93. * @param vo
  94. * @return com.ruoyi.common.core.web.domain.AjaxResult
  95. * @author pengyu
  96. * @date 2023/2/22 19:56
  97. **/
  98. @PostMapping("/AppShijianController/checkShijian")
  99. public AjaxResult checkShijian(AppShijianVO vo);
  100. /**
  101. * 手机端事件详情
  102. *
  103. * @param vo
  104. * @return com.ruoyi.common.core.web.domain.AjaxResult
  105. * @author pengyu
  106. * @date 2023/2/22 18:25
  107. **/
  108. @PostMapping("/AppShijianController/detailShijian")
  109. public AjaxResult detailShijian(AppShijianVO vo);
  110. // ----------- APP事件中心远程调用 ------------
  111. //事件预案
  112. @GetMapping("/centereventtfireevent/getYuAnByEventCode")
  113. public R<Map<String, Object>> getYuAnByEventCode(@RequestParam("eventCode") String eventCode);
  114. /**
  115. * 手机端事件列表
  116. *
  117. * @return
  118. * @Version 1.0
  119. * @author wang_xy
  120. * @since 2023/2/21 15:31
  121. */
  122. @PostMapping("/eventapp/listByApp")
  123. R<List<AppEventSalBO>> listByApp(@RequestBody AppEventSalVO appEventSalVO);
  124. /**
  125. * 获取事件目录详细信息
  126. *
  127. * @param eventCode
  128. * @return com.ruoyi.common.core.domain.R
  129. * @author pengyu
  130. * @date 2023/2/21 14:13
  131. */
  132. @GetMapping("/eventapp/getCentereventTEventcatalogueByCode")
  133. public R<AppEventSalBO> getCentereventTEventcatalogueByCode(@RequestParam("eventCode") String eventCode);
  134. /**
  135. * 手机端获取事件大小类
  136. *
  137. * @return
  138. * @Version 1.0
  139. * @author wang_xy
  140. * @since 2023/2/21 13:37
  141. */
  142. @GetMapping("/eventtype/getCentereventTEventtypeByParentId")
  143. public R<List<AppEventTypeBO>> getCentereventTEventtypeByParentId(@RequestParam("parentId") String parentId);
  144. /**
  145. * 手机端获取事件大小类
  146. *
  147. * @return
  148. * @Version 1.0
  149. * @author wang_xy
  150. * @since 2023/2/21 13:37
  151. */
  152. @GetMapping("/centereventtfirelog/{id}")
  153. public R<CentereventTFireLog> selectCentereventTFireLogById(@PathVariable("id") String id);
  154. /*********************************************应急接口start**********************************/
  155. /**
  156. * 应急-巡检详情
  157. *
  158. * @return
  159. * @Version 1.0
  160. * @author wang_xy
  161. * @since 2023/3/22 14:08
  162. */
  163. @GetMapping(value = "inspectionrecord/{id}")
  164. public AjaxResult getInspectionrecordInfo(@PathVariable("id") String id);
  165. /**
  166. * 应急-巡更详情
  167. *
  168. * @return
  169. * @Version 1.0
  170. * @author wang_xy
  171. * @since 2023/3/22 14:08
  172. */
  173. @GetMapping(value = "patrolrecord/{id}")
  174. public AjaxResult getPatrolrecordInfo(@PathVariable("id") String id);
  175. /**
  176. * 应急-新增巡更记录
  177. *
  178. * @return
  179. * @Version 1.0
  180. * @author wang_xy
  181. * @since 2023/3/22 14:08
  182. */
  183. @PostMapping(value = "patrolrecord/addPatrolrecord")
  184. public AjaxResult addPatrolrecord(@RequestBody CentereventTEmergencyPatrolrecord centereventTEmergencyPatrolrecord);
  185. /**
  186. * 应急- 巡更记录列表
  187. *
  188. * @return
  189. * @Version 1.0
  190. * @author wang_xy
  191. * @since 2023/3/22 14:08
  192. */
  193. @PostMapping(value = "patrolrecord/listPatrolrecord")
  194. public TableDataInfo listPatrolrecord(@RequestParam(value = "pageNum") Integer pageNum, @RequestParam(value = "pageSize") Integer pageSize, @RequestBody CentereventTEmergencyPatrolrecord centereventTEmergencyPatrolrecord);
  195. @GetMapping("/commandCenter/getDeptEventCount")
  196. public AjaxResult getDeptEventCount(@RequestParam("deptId") Long deptId);
  197. @GetMapping("/commandCenter/appEventStatistics")
  198. public AjaxResult appEventStatistics(@RequestParam("deptId") Long deptId);
  199. /**
  200. * 获取火灾蔓延
  201. *
  202. * @param
  203. * @return
  204. */
  205. @GetMapping("/spread/getFireSpreadInfo")
  206. public AjaxResult getFireSpreadInfo();
  207. /**
  208. * 插入火灾蔓延
  209. *
  210. * @param centereventTFireSpread
  211. * @return
  212. */
  213. @PostMapping(value = "/spread",headers = {"Content-Type=application/json"})
  214. public AjaxResult addspread(@RequestBody String centereventTFireSpread);
  215. }