BmsshipFeign.java 11 KB

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