WMSHFeign.java 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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.PathVariable;
  5. import org.springframework.web.bind.annotation.PostMapping;
  6. import org.springframework.web.bind.annotation.RequestBody;
  7. import org.springframework.web.bind.annotation.RequestParam;
  8. import java.util.Map;
  9. /**
  10. * @Description:
  11. * @Author:HuJianGuo
  12. * @GreateTime:2021/10/12 9:54
  13. * @Version:V2.0
  14. */
  15. @FeignClient(value = "dil-wmsh-api", url = "${openfeign.WMSHFeign.url}")
  16. public interface WMSHFeign {
  17. /**
  18. * 展示下游港口港存库库存列表
  19. *
  20. * @param mapValue
  21. * @param pageNum
  22. * @param pageSize
  23. * @param apiId
  24. * @return
  25. */
  26. @PostMapping(value = "/api/v1/wmsh/wmshgridmaterials/getUnloadPortStockList")
  27. RESTfulResult getUnloadPortStockList(@RequestBody(required = false) Map<String, Object> mapValue,
  28. @RequestParam Integer pageNum,
  29. @RequestParam Integer pageSize,
  30. @RequestParam Integer apiId);
  31. /**
  32. * 展示万州港港存库库存列表
  33. *
  34. * @param mapValue
  35. * @param pageNum
  36. * @param pageSize
  37. * @param apiId
  38. * @return
  39. */
  40. @PostMapping(value = "/api/v1/wmsh/wmshgridmaterials/getLoadPortStockList")
  41. RESTfulResult getLoadPortStockList(@RequestBody(required = false) Map<String, Object> mapValue,
  42. @RequestParam Integer pageNum,
  43. @RequestParam Integer pageSize,
  44. @RequestParam Integer apiId);
  45. /**
  46. * 查询所有港存库入库实绩
  47. *
  48. * @param mapValue
  49. * @param pageNum
  50. * @param pageSize
  51. * @param apiId
  52. * @return
  53. */
  54. @PostMapping(value = "/api/v1/wmsh/wmshinboundresults/getInBoundResult")
  55. RESTfulResult getInBoundResult(@RequestBody(required = false) Map<String, Object> mapValue,
  56. @RequestParam Integer apiId,
  57. @RequestParam Integer pageNum,
  58. @RequestParam Integer pageSize);
  59. /**
  60. * 新增港存库入库实绩
  61. *
  62. * @param wmshInboundResult
  63. * @return
  64. */
  65. @PostMapping(value = "/api/v1/wmsh/wmshinboundresults/addWarehousingResult")
  66. RESTfulResult addWarehousingResult(@RequestBody(required = false) Map<String, Object> wmshInboundResult);
  67. /**
  68. * 通过实绩Id查询实绩
  69. *
  70. * @param resultId
  71. * @return
  72. */
  73. @PostMapping(value = "/api/v1/wmsh/wmshinboundresults/getResultById/{resultId}")
  74. RESTfulResult getResultById(@PathVariable("resultId") Integer resultId);
  75. /**
  76. * 逻辑删除港存库入库实绩
  77. *
  78. * @param resultId
  79. * @return
  80. */
  81. @PostMapping(value = "/api/v1/wmsh/wmshinboundresults/deleteWareHosingResult/{resultId}")
  82. RESTfulResult deleteWareHosingResult(@PathVariable("resultId") Integer resultId);
  83. /**
  84. * 修改港存库入库实绩
  85. *
  86. * @param wmshInboundResult
  87. * @return
  88. */
  89. @PostMapping(value = "/api/v1/wmsh/wmshinboundresults/updateWareHosingResult")
  90. RESTfulResult updateWareHosingResult(@RequestBody Map<String, Object> wmshInboundResult);
  91. /**
  92. * 查询所有港存库出库实绩
  93. *
  94. * @param mapValue
  95. * @param pageNum
  96. * @param pageSize
  97. * @param apiId
  98. * @return
  99. */
  100. @PostMapping(value = "/api/v1/wmsh/wmshoutboundresults/getOutBoundResult")
  101. RESTfulResult getOutBoundResult(@RequestBody(required = false) Map<String, Object> mapValue,
  102. @RequestParam Integer apiId,
  103. @RequestParam Integer pageNum,
  104. @RequestParam Integer pageSize);
  105. /**
  106. * 添加港存库出库实绩
  107. *
  108. * @param map
  109. * @return
  110. */
  111. @PostMapping(value = "/api/v1/wmsh/wmshoutboundresults/addResult")
  112. RESTfulResult addResult(@RequestBody(required = false) Map<String, Object> map);
  113. @PostMapping(value = "/api/v1/wmsh/wmshgridmaterials/clearWmshGridMaterial")
  114. RESTfulResult clearWmshGridMaterial(@RequestBody(required = false) Map<String, Object> wmshInboundResult);
  115. }