BmsshipFeign.java 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. package com.steerinfo.dil.feign;
  2. import com.steerinfo.framework.controller.RESTfulResult;
  3. import org.springframework.cloud.openfeign.FeignClient;
  4. import org.springframework.web.bind.annotation.*;
  5. import java.math.BigDecimal;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * @Description:
  10. * @Author:HuJianGuo
  11. * @GreateTime:2021/9/23 8:46
  12. * @Version:V2.0
  13. */
  14. @FeignClient(value = "DIL-BMSSHIP-API-DEV", url = "${openfeign.BmsshipFeign.url}")
  15. public interface BmsshipFeign {
  16. /**
  17. * 展示港口装卸费
  18. *
  19. * @param mapValue
  20. * @param pageNum
  21. * @param pageSize
  22. * @param apiId
  23. * @return
  24. */
  25. @PostMapping(value = "/api/v1/bmsship/bmsporthandlingfee/getPortHandlingFeeList")
  26. RESTfulResult getPortHandlingFeeList(@RequestBody(required = false) Map<String, Object> mapValue,
  27. @RequestParam("pageNum") Integer pageNum,
  28. @RequestParam("pageSize") Integer pageSize,
  29. @RequestParam("apiId") Integer apiId);
  30. /**
  31. * 展示批次信息
  32. *
  33. * @param mapValue
  34. * @param pageNum
  35. * @param pageSize
  36. * @param apiId
  37. * @return
  38. */
  39. @PostMapping(value = "/api/v1/bmsship/bmsporthandlingfee/getBatch")
  40. RESTfulResult getBatch(@RequestBody(required = false) Map<String, Object> mapValue,
  41. @RequestParam("pageNum") Integer pageNum,
  42. @RequestParam("pageSize") Integer pageSize,
  43. @RequestParam("apiId") Integer apiId);
  44. /**
  45. * 生成港口装卸费
  46. *
  47. * @param portHandlingFee
  48. * @return
  49. */
  50. @PostMapping(value = "/api/v1/bmsship/bmsporthandlingfee/addPortHandlingFee")
  51. RESTfulResult addPortHandlingFee(@RequestBody Map<String, Object> portHandlingFee) throws Exception;
  52. /**
  53. * 修改港口装卸费信息
  54. *
  55. * @param portHandlingFee
  56. * @return
  57. */
  58. @PostMapping(value = "/api/v1/bmsship/bmsporthandlingfee/updatePortHandlingFee")
  59. RESTfulResult updatePortHandlingFee(@RequestBody Map<String, Object> portHandlingFee);
  60. /**
  61. * 查询修改港口装卸费数据渲染表单
  62. *
  63. * @param feeId
  64. * @return
  65. */
  66. @PostMapping(value = "/api/v1/bmsship/bmsporthandlingfee/getFeeToUpdate/{feeId}")
  67. RESTfulResult getFeeToUpdate(@PathVariable("feeId") BigDecimal feeId);
  68. /**
  69. * 逻辑删除港口装卸费
  70. *
  71. * @param feeId
  72. * @return
  73. */
  74. @PostMapping(value = "/api/v1/bmsship/bmsporthandlingfee/deletePortHandlingFee/{feeId}")
  75. RESTfulResult deletePortHandlingFee(@PathVariable("feeId") String feeId);
  76. /**
  77. * 展示水运详单信息
  78. *
  79. * @param mapValue
  80. * @param pageNum
  81. * @param pageSize
  82. * @param apiId
  83. * @return
  84. */
  85. @PostMapping(value = "/api/v1/bmsship/bmsshipdetailsorder/getDetailsOrderList")
  86. RESTfulResult getDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  87. @RequestParam("pageNum") Integer pageNum,
  88. @RequestParam("pageSize") Integer pageSize,
  89. @RequestParam("apiId") Integer apiId);
  90. /**
  91. * 展示未生成账单的详单信息
  92. *
  93. * @param mapValue
  94. * @param pageNum
  95. * @param pageSize
  96. * @param apiId
  97. * @return
  98. */
  99. @PostMapping(value = "/api/v1/bmsship/bmsshipdetailsorder/getUncomplateDetailsOrderList")
  100. RESTfulResult getUncomplateDetailsOrderList(@RequestBody(required = false) Map<String, Object> mapValue,
  101. @RequestParam("pageNum") Integer pageNum,
  102. @RequestParam("pageSize") Integer pageSize,
  103. @RequestParam("apiId") Integer apiId);
  104. /**
  105. * 生成水运计费详单
  106. *
  107. * @param resultId
  108. * @return
  109. * @throws Exception
  110. */
  111. @PostMapping(value = "/api/v1/bmsship/bmsshipdetailsorder/addDetailsOrder/{resultId}")
  112. RESTfulResult addDetailsOrder(@PathVariable("resultId") BigDecimal resultId) throws Exception;
  113. /**
  114. * 展示水运费和水分质检费账单信息
  115. *
  116. * @param mapValue
  117. * @param pageNum
  118. * @param pageSize
  119. * @param apiId
  120. * @return
  121. */
  122. @PostMapping(value = "/api/v1/bmsship/bmsshipstatement/getStatementList")
  123. RESTfulResult getStatementList(@RequestBody(required = false) Map<String, Object> mapValue,
  124. @RequestParam("pageNum") Integer pageNum,
  125. @RequestParam("pageSize") Integer pageSize,
  126. @RequestParam("apiId") Integer apiId);
  127. /**
  128. * 展示途损费账单信息
  129. *
  130. * @param mapValue
  131. * @param pageNum
  132. * @param pageSize
  133. * @param apiId
  134. * @return
  135. */
  136. @PostMapping(value = "/api/v1/bmsship/bmsshipstatement/getLossStatementList")
  137. RESTfulResult getLossStatementList(@RequestBody(required = false) Map<String, Object> mapValue,
  138. @RequestParam("pageNum") Integer pageNum,
  139. @RequestParam("pageSize") Integer pageSize,
  140. @RequestParam("apiId") Integer apiId);
  141. /**
  142. * 展示水分质检实绩
  143. *
  144. * @param mapValue
  145. * @param pageNum
  146. * @param pageSize
  147. * @param apiId
  148. * @return
  149. */
  150. @PostMapping(value = "/api/v1/bmsship/bmsshipstatement/getWaterResult")
  151. RESTfulResult getWaterResult(@RequestBody(required = false) Map<String, Object> mapValue,
  152. @RequestParam("pageNum") Integer pageNum,
  153. @RequestParam("pageSize") Integer pageSize,
  154. @RequestParam("apiId") Integer apiId);
  155. /**
  156. * 生成水运费账单
  157. *
  158. * @param mapList
  159. * @return
  160. * @throws Exception
  161. */
  162. @PostMapping(value = "/api/v1/bmsship/bmsshipstatement/addStatement")
  163. RESTfulResult addStatement(@RequestBody List<Map<String, Object>> mapList) throws Exception;
  164. /**
  165. * 生成水分质检账单
  166. *
  167. * @param mapList
  168. * @return
  169. * @throws Exception
  170. */
  171. @PostMapping(value = "/api/v1/bmsship/bmsshipstatement/addWaterStatement")
  172. RESTfulResult addWaterStatement(@RequestBody List<Map<String, Object>> mapList) throws Exception;
  173. /**
  174. * 生成途损账单
  175. *
  176. * @param map
  177. * @return
  178. * @throws Exception
  179. */
  180. @PostMapping(value = "/api/v1/bmsship/bmsshipstatement/addLossStatement")
  181. RESTfulResult addLossStatement(@RequestBody Map<String, Object> map) throws Exception;
  182. /**
  183. * 展示账单下的详单
  184. *
  185. * @param batchId
  186. * @param mapValue
  187. * @param pageNum
  188. * @param pageSize
  189. * @param apiId
  190. * @return
  191. */
  192. @PostMapping(value = "/api/v1/bmsship/bmsshipstatement/getStatementDetailsOrderList")
  193. RESTfulResult getStatementDetailsOrderList(@RequestParam BigDecimal batchId,
  194. @RequestBody(required = false) Map<String, Object> mapValue,
  195. @RequestParam("pageNum") Integer pageNum,
  196. @RequestParam("pageSize") Integer pageSize,
  197. @RequestParam("apiId") Integer apiId);
  198. /**
  199. * 展示详单下的船运实绩
  200. *
  201. * @param batchId
  202. * @param mapValue
  203. * @param pageNum
  204. * @param pageSize
  205. * @param apiId
  206. * @return
  207. */
  208. @PostMapping(value = "/api/v1/bmsship/bmsshipstatement/getShipResult")
  209. RESTfulResult getShipResult(@RequestParam BigDecimal batchId,
  210. @RequestBody(required = false) Map<String, Object> mapValue,
  211. @RequestParam("pageNum") Integer pageNum,
  212. @RequestParam("pageSize") Integer pageSize,
  213. @RequestParam("apiId") Integer apiId);
  214. /**
  215. * 查询水运费计算公式
  216. *
  217. * @return
  218. */
  219. @PostMapping(value = "/api/v1/bmsship/bmsshipformulas/getShipFeesFormula")
  220. RESTfulResult getShipFeesFormula();
  221. /**
  222. * 查询途损费计算公式
  223. *
  224. * @return
  225. */
  226. @PostMapping(value = "/api/v1/bmsship/bmsshipformulas/getLossFeesFormula")
  227. RESTfulResult getLossFeesFormula();
  228. /**
  229. * 查询水分质检计算公式
  230. *
  231. * @return
  232. */
  233. @PostMapping(value = "/api/v1/bmsship/bmsshipformulas/getWaterFeesFormula")
  234. RESTfulResult getWaterFeesFormula();
  235. }