TmsTruckFeign.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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/addLoadResultForConverted")
  19. Map<String,Object> addLoadResultForConverted(@RequestBody(required=false) Map<String,Object> map);
  20. @PostMapping("api/v1/truckTms/tmstruckloadresults/getAllLoadResult")
  21. public Map<String, Object> getAllLoadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  22. @RequestParam("apiId") Integer apiId,
  23. @RequestParam("pageNum") Integer pageNum,
  24. @RequestParam("pageSize") Integer pageSize,
  25. @RequestParam("status") Integer status ,
  26. @RequestParam("orderType") Integer orderType);
  27. @PostMapping("api/v1/truckTms/tmstruckloadresults/selectLoadResultForConverted")
  28. public Map<String,Object> selectLoadResultForConverted(@RequestBody(required=false) Map<String,Object> mapValue,
  29. @RequestParam("apiId") Integer apiId,
  30. @RequestParam("pageNum") Integer pageNum,
  31. @RequestParam("pageSize") Integer pageSize);
  32. @PostMapping("api/v1/truckTms/tmstruckloadresults/getLoadResultByResultId/{resultId}")
  33. public Map<String,Object> getLoadResultByResultId(@PathVariable("resultId") Integer resultId);
  34. @PostMapping("api/v1/truckTms/tmstruckloadresults/addUnLoadResultForconverted")
  35. public Map<String,Object> addUnLoadResultForconverted(@RequestBody(required = false) Map<String,Object> map);
  36. @PostMapping("api/v1/truckTms/tmstruckloadresults/addCGLoadResult")
  37. public Map<String, Object> addCGLoadResult(@RequestBody(required=false) Map<String,Object> mapValue);
  38. @PostMapping("api/v1/truckTms/tmstruckloadresults/updateLoadResult")
  39. public Map<String, Object> updateLoadResult(@RequestBody(required=false) Map<String,Object> mapValue);
  40. @PostMapping("api/v1/truckTms/tmstruckloadresults/getLoadResultById/{resultId}")
  41. public Map<String, Object> getLoadResultById(@PathVariable("resultId") Integer resultId);
  42. @PostMapping("api/v1/truckTms/tmstruckloadresults/deleteLoadResult/{resultId}")
  43. public Map<String, Object> deleteLoadResult(@PathVariable("resultId")Integer resultId);
  44. /*
  45. TmstruckEnfactoryResultController
  46. */
  47. @ApiOperation(value="查询所有的进厂实绩")
  48. @ApiImplicitParams({
  49. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  50. @ApiImplicitParam(name = "apiId(99)", value = "动态表头", required = false, dataType = "Integer"),
  51. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  52. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  53. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  54. })
  55. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/getAllEnFactoryResult")
  56. public Map<String, Object> getAllEnFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  57. @RequestParam("apiId") Integer apiId,
  58. @RequestParam("pageNum") Integer pageNum,
  59. @RequestParam("pageSize") Integer pageSize,
  60. @RequestParam("orderType")Integer orderType
  61. );
  62. @ApiOperation(value="通过采集系统传来的数据新增进厂作业实绩")
  63. @ApiImplicitParams({
  64. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  65. })
  66. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/addEnFactoryResult")
  67. public Map<String, Object> addEnFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue);
  68. @ApiOperation(value="PDA扫描更新进厂作业实绩")
  69. @ApiImplicitParams({
  70. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  71. })
  72. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/enFactoryResultByPDA")
  73. public Map<String, Object> enFactoryResultByPDA(@RequestBody(required=false) Map<String,Object> mapValue);
  74. /*
  75. TmstruckWeightResultController
  76. */
  77. @PostMapping("api/v1/truckTms/tmstruckweightresults/getAllJiMaoResult")
  78. public Map<String, Object> getAllJiMaoResult(@RequestBody(required=false) Map<String,Object> mapValue,
  79. @RequestParam("apiId") Integer apiId,
  80. @RequestParam("pageNum") Integer pageNum,
  81. @RequestParam("pageSize") Integer pageSize,
  82. @RequestParam("orderType") Integer orderType
  83. );
  84. @PostMapping("api/v1/truckTms/tmstruckweightresults/getAllJiPiResult")
  85. public Map<String, Object> getAllJiPiResult(@RequestBody(required=false) Map<String,Object> mapValue,
  86. @RequestParam("apiId") Integer apiId,
  87. @RequestParam("pageNum") Integer pageNum,
  88. @RequestParam("pageSize") Integer pageSize,
  89. @RequestParam("orderType") Integer orderType);
  90. @PostMapping("api/v1/truckTms/tmstruckweightresults/addJiMaoResult")
  91. public Map<String, Object> addJiMaoResult(@RequestBody Map<String, Object> mapValue);
  92. @PostMapping("api/v1/truckTms/tmstruckweightresults/addJiPiResult")
  93. public Map<String, Object> addJiPiResult(@RequestBody Map<String, Object> mapValue);
  94. /*
  95. TmstruckUnloadResultController
  96. */
  97. @PostMapping("api/v1/truckTms/tmstruckunloadresult/getUnloadResult")
  98. public Map<String, Object> getUnloadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  99. @RequestParam("apiId") Integer apiId,
  100. @RequestParam("pageNum") Integer pageNum,
  101. @RequestParam("pageSize") Integer pageSize,
  102. @RequestParam("orderType") Integer orderType
  103. );
  104. @PostMapping("api/v1/truckTms/tmstruckunloadresult/addUnloadResult")
  105. public Map<String, Object> addUnloadResult(@RequestBody Map<String, Object> mapValue);
  106. @PostMapping("api/v1/truckTms/tmstruckunloadresult/updateUnloadResult")
  107. public Map<String, Object> updateUnloadResult(@RequestBody Map<String, Object> mapValue);
  108. /*
  109. TmstruckReceiptResultController
  110. */
  111. @PostMapping("api/v1/truckTms/tmstruckreceiptresults/getReceiveResult")
  112. public Map<String, Object> getReceiveResult(@RequestBody(required=false) Map<String,Object> mapValue,
  113. @RequestParam("apiId") Integer apiId,
  114. @RequestParam("pageNum") Integer pageNum,
  115. @RequestParam("pageSize") Integer pageSize,
  116. @RequestParam("orderType") Integer orderType);
  117. /*
  118. TmstruckLeaveFactoryResultController
  119. */
  120. @PostMapping("api/v1/truckTms/tmstruckleavefactoryresults/getLeaveFactoryResult")
  121. public Map<String, Object> getLeaveFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  122. @RequestParam("apiId") Integer apiId,
  123. @RequestParam("pageNum") Integer pageNum,
  124. @RequestParam("pageSize") Integer pageSize,
  125. @RequestParam("orderType") Integer orderType
  126. );
  127. @PostMapping("api/v1/truckTms/tmstruckleavefactoryresults/addLeaveFactoryResult")
  128. public Map<String, Object> addLeaveFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue);
  129. /*
  130. TmstruckMeasureCommissionController
  131. */
  132. @PostMapping("api/v1/truckTms/tmstruckmeasurecommissions/getAllMeasureCommission/{type}")
  133. public Map<String, Object> getAllMeasureCommission(@PathVariable("type") Integer type);
  134. /*
  135. TmstruckQualityResultController
  136. */
  137. @PostMapping("api/v1/truckTms/tmstruckqualityresults/getQualityResult")
  138. public Map<String, Object> getQualityResult(@RequestBody(required=false) Map<String,Object> mapValue,
  139. @RequestParam("apiId") Integer apiId,
  140. @RequestParam("pageNum") Integer pageNum,
  141. @RequestParam("pageSize") Integer pageSize);
  142. @PostMapping("api/v1/truckTms/tmstruckqualityresults/getQualityResultById/{resultId}")
  143. public Map<String, Object> getQualityResultById(@PathVariable("resultId") Integer resultId);
  144. @PostMapping("api/v1/truckTms/tmstruckqualityresults/updateQualityResult")
  145. public Map<String, Object> updateQualityResult(@RequestBody(required=false) Map<String,Object> mapValue);
  146. @PostMapping("api/v1/truckTms/tmstruckqualityresults/selectQualityResultForConverted")
  147. Map<String,Object> selectQualityResultForConverted(@RequestBody(required=false) Map<String,Object> mapValue,
  148. @RequestParam("apiId") Integer apiId,
  149. @RequestParam("pageNum") Integer pageNum,
  150. @RequestParam("pageSize") Integer pageSize);
  151. /**
  152. * TmstruckTotalResult
  153. */
  154. @PostMapping("api/v1/truckTms/tmstrucktotalresults/selectCountList")
  155. Map<String,Object> selectCountList(@RequestBody(required=false) Map<String,Object> mapValue,
  156. @RequestParam("apiId") Integer apiId,
  157. @RequestParam("pageNum") Integer pageNum,
  158. @RequestParam("pageSize") Integer pageSize);
  159. /**
  160. * 下拉框
  161. */
  162. @GetMapping("api/v1/truckTms/dropDown/getDilBatch")
  163. Map<String, Object> getDilBatch();
  164. @GetMapping("api/v1/truckTms/dropDown/getCarrier")
  165. Map<String, Object> getCarrier();
  166. @GetMapping("api/v1/truckTms/dropDown/getLine")
  167. Map<String, Object> getLine();
  168. @GetMapping("api/v1/truckTms/dropDown/getWarehouse")
  169. Map<String, Object> getWarehouse();
  170. @GetMapping("api/v1/truckTms/dropDown/getGatepost")
  171. Map<String, Object> getGatepost();
  172. @GetMapping("api/v1/truckTms/dropDown/getAPO")
  173. Map<String, Object> getAPO();
  174. @GetMapping("api/v1/truckTms/dropDown/getFuCapacityId")
  175. Map<String, Object> getFuCapacityId();
  176. @GetMapping("api/v1/truckTms/dropDown/getPort")
  177. Map<String, Object> getPort();
  178. @GetMapping("api/v1/truckTms/dropDown/getFuMaterial/{type}")
  179. Map<String, Object> getFuMaterial(@PathVariable("type")Integer type);
  180. /**
  181. * 包月总实绩
  182. */
  183. @PostMapping("api/v1/truckTms/tmstrucktotalresults/getTmstruckMonthResult")
  184. Map<String,Object> getTmstruckMonthResult(@RequestBody(required=false) Map<String,Object> mapValue,
  185. @RequestParam("apiId") Integer apiId,
  186. @RequestParam("pageNum") Integer pageNum,
  187. @RequestParam("pageSize") Integer pageSize);
  188. /**
  189. *通过运输订单判断下一步是否需要计量,更新汽车衡到计量实绩中
  190. */
  191. @PostMapping("api/v1/truckTms/tmstruckweightresults/{orderId}")
  192. Map<String,Object> isNextNeedJl(@PathVariable("orderId") Integer orderId);
  193. }