TmsTruckFeign.java 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. package com.steerinfo.dil.feign;
  2. import com.steerinfo.framework.controller.RESTfulResult;
  3. import io.swagger.annotations.ApiImplicitParam;
  4. import io.swagger.annotations.ApiImplicitParams;
  5. import io.swagger.annotations.ApiOperation;
  6. import org.springframework.cloud.openfeign.FeignClient;
  7. import org.springframework.web.bind.annotation.*;
  8. import java.util.Map;
  9. /**
  10. * @ author :TXF
  11. * @ time :2021/9/28 9:30
  12. */
  13. @FeignClient(name = "dil-tms-truck-dev", url = "${openfeign.TmsTruckFeign.url}")
  14. public interface TmsTruckFeign {
  15. /*
  16. TmstruckLoadResultController
  17. */
  18. @PostMapping("api/v1/truckTms/tmstruckloadresults/getAllLoadResult")
  19. public RESTfulResult getAllLoadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  20. @RequestParam("apiId") Integer apiId,
  21. @RequestParam("pageNum") Integer pageNum,
  22. @RequestParam("pageSize") Integer pageSize,
  23. @RequestParam("status") Integer status );
  24. @PostMapping("api/v1/truckTms/tmstruckloadresults/addLoadResult")
  25. public RESTfulResult addLoadResult(@RequestBody(required=false) Map<String,Object> mapValue);
  26. @PostMapping("api/v1/truckTms/tmstruckloadresults/updateLoadResult")
  27. public RESTfulResult updateLoadResult(@RequestBody(required=false) Map<String,Object> mapValue);
  28. @PostMapping("api/v1/truckTms/tmstruckloadresults/getLoadResultById/{resultId}")
  29. public RESTfulResult getLoadResultById(@PathVariable("resultId") Integer resultId);
  30. @PostMapping("api/v1/truckTms/tmstruckloadresults/deleteLoadResult/{resultId}")
  31. public RESTfulResult deleteLoadResult(@PathVariable("resultId")Integer resultId);
  32. /*
  33. TmstruckEnfactoryResultController
  34. */
  35. @ApiOperation(value="查询所有的进厂实绩")
  36. @ApiImplicitParams({
  37. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  38. @ApiImplicitParam(name = "apiId(99)", value = "动态表头", required = false, dataType = "Integer"),
  39. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  40. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  41. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  42. })
  43. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/getAllEnFactoryResult")
  44. public RESTfulResult getAllEnFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  45. @RequestParam("apiId") Integer apiId,
  46. @RequestParam("pageNum") Integer pageNum,
  47. @RequestParam("pageSize") Integer pageSize
  48. );
  49. @ApiOperation(value="通过采集系统传来的数据新增进厂作业实绩")
  50. @ApiImplicitParams({
  51. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  52. })
  53. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/addEnFactoryResult")
  54. public RESTfulResult addEnFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue);
  55. @ApiOperation(value="PDA扫描更新进厂作业实绩")
  56. @ApiImplicitParams({
  57. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  58. })
  59. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/updateEnactoryResult")
  60. public RESTfulResult updateEnactoryResult(@RequestBody(required=false) Map<String,Object> mapValue);
  61. /*
  62. TmstruckWeightResultController
  63. */
  64. @PostMapping("api/v1/truckTms/tmstruckweightresults/getAllJiMaoResult")
  65. public RESTfulResult getAllJiMaoResult(@RequestBody(required=false) Map<String,Object> mapValue,
  66. @RequestParam("apiId") Integer apiId,
  67. @RequestParam("pageNum") Integer pageNum,
  68. @RequestParam("pageSize") Integer pageSize);
  69. @PostMapping("api/v1/truckTms/tmstruckweightresults/getAllJiPiResult")
  70. public RESTfulResult getAllJiPiResult(@RequestBody(required=false) Map<String,Object> mapValue,
  71. @RequestParam("apiId") Integer apiId,
  72. @RequestParam("pageNum") Integer pageNum,
  73. @RequestParam("pageSize") Integer pageSize);
  74. @PostMapping("api/v1/truckTms/tmstruckweightresults/addJiMaoResult")
  75. public RESTfulResult addJiMaoResult(@RequestBody Map<String, Object> mapValue);
  76. @PostMapping("api/v1/truckTms/tmstruckweightresults/addJiPiResult")
  77. public RESTfulResult addJiPiResult(@RequestBody Map<String, Object> mapValue);
  78. /*
  79. TmstruckUnloadResultController
  80. */
  81. @PostMapping("api/v1/truckTms/tmstruckunloadresult/getUnloadResult")
  82. public RESTfulResult getUnloadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  83. @RequestParam("apiId") Integer apiId,
  84. @RequestParam("pageNum") Integer pageNum,
  85. @RequestParam("pageSize") Integer pageSize);
  86. @PostMapping("api/v1/truckTms/tmstruckunloadresult/addUnloadResult")
  87. public RESTfulResult addUnloadResult(@RequestBody Map<String, Object> mapValue);
  88. /*
  89. TmstruckReceiptResultController
  90. */
  91. @PostMapping("api/v1/truckTms/tmstruckreceiptresults/getReceiveResult")
  92. public RESTfulResult getReceiveResult(@RequestBody(required=false) Map<String,Object> mapValue,
  93. @RequestParam("apiId") Integer apiId,
  94. @RequestParam("pageNum") Integer pageNum,
  95. @RequestParam("pageSize") Integer pageSize);
  96. /*
  97. TmstruckLeaveFactoryResultController
  98. */
  99. @PostMapping("api/v1/truckTms/tmstruckleavefactoryresults/getLeaveFactoryResult")
  100. public RESTfulResult getLeaveFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  101. @RequestParam("apiId") Integer apiId,
  102. @RequestParam("pageNum") Integer pageNum,
  103. @RequestParam("pageSize") Integer pageSize);
  104. @PostMapping("api/v1/truckTms/tmstruckleavefactoryresults/addLeaveFactoryResult")
  105. public RESTfulResult addLeaveFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue);
  106. /*
  107. TmstruckMeasureCommissionController
  108. */
  109. @PostMapping("api/v1/truckTms/tmstruckmeasurecommissions/getAllMeasureCommission/{type}")
  110. public RESTfulResult getAllMeasureCommission(@PathVariable("type") Integer type);
  111. /*
  112. TmstruckQualityResultController
  113. */
  114. @PostMapping("api/v1/truckTms/tmstruckqualityresults/getQualityResult")
  115. public RESTfulResult getQualityResult(@RequestBody(required=false) Map<String,Object> mapValue,
  116. @RequestParam("apiId") Integer apiId,
  117. @RequestParam("pageNum") Integer pageNum,
  118. @RequestParam("pageSize") Integer pageSize);
  119. @PostMapping("api/v1/truckTms/tmstruckqualityresults/getQualityResultById/{resultId}")
  120. public RESTfulResult getQualityResultById(@PathVariable("resultId") Integer resultId);
  121. @PostMapping("api/v1/truckTms/tmstruckqualityresults/updateQualityResult")
  122. public RESTfulResult updateQualityResult(@RequestBody(required=false) Map<String,Object> mapValue);
  123. /**
  124. * 下拉框
  125. */
  126. @GetMapping("api/v1/truckTms/dropDown/getDilBatch")
  127. RESTfulResult getDilBatch();
  128. @GetMapping("api/v1/truckTms/dropDown/getCarrier")
  129. RESTfulResult getCarrier();
  130. @GetMapping("api/v1/truckTms/dropDown/getLine")
  131. RESTfulResult getLine();
  132. @GetMapping("api/v1/truckTms/dropDown/getWarehouse")
  133. RESTfulResult getWarehouse();
  134. @GetMapping("api/v1/truckTms/dropDown/getGatepost")
  135. RESTfulResult getGatepost();
  136. @GetMapping("api/v1/truckTms/dropDown/getAPO")
  137. RESTfulResult getAPO();
  138. @GetMapping("api/v1/truckTms/dropDown/getFuCapacityId")
  139. RESTfulResult getFuCapacityId();
  140. @GetMapping("api/v1/truckTms/dropDown/getPort")
  141. RESTfulResult getPort();
  142. }