TmsTruckFeign.java 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  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.List;
  9. import java.util.Map;
  10. /**
  11. * @ author :TXF
  12. * @ time :2021/9/28 9:30
  13. */
  14. @FeignClient(name = "dil-tms-truck-dev", url = "${openfeign.TmsTruckFeign.url}")
  15. public interface TmsTruckFeign {
  16. /*
  17. TmstruckLoadResultController
  18. */
  19. @PostMapping("api/v1/truckTms/tmstruckloadresults/addLoadResultForConverted")
  20. Map<String,Object> addLoadResultForConverted(@RequestBody(required=false) Map<String,Object> map);
  21. @PostMapping("api/v1/truckTms/tmstruckloadresults/getSaleOrderOnQueue")
  22. public Map<String, Object> getSaleOrderOnQueue(@RequestBody(required=false) Map<String,Object> mapValue,
  23. @RequestParam("apiId") Integer apiId,
  24. @RequestParam("pageNum") Integer pageNum,
  25. @RequestParam("pageSize") Integer pageSize,
  26. @RequestParam("con") String con);
  27. @ApiOperation(value="查询订单下的物资")
  28. @GetMapping("api/v1/truckTms/dropDown/getOrderMaterial/{orderId}")
  29. public Map<String, Object> getOrderMaterial(@PathVariable("orderId") Integer orderId);
  30. @ApiOperation(value="查询仓库下所有月台")
  31. @GetMapping("api/v1/truckTms/dropDown/getPlatformIdByWarehouse/{warehouseId}")
  32. public Map<String, Object> getPlatformIdByWarehouse(@PathVariable("warehouseId") Integer warehouseId);
  33. @ApiOperation(value="修改装车点和装车顺序:销售钢材专用 ")
  34. @PostMapping("api/v1/truckTms/tmstruckloadresults/updateLoadingIdAndLoadSq")
  35. public Map<String, Object> updateLoadingIdAndLoadSq(@RequestBody(required=false) Map<String, Object> map);
  36. @PostMapping("api/v1/truckTms/tmstruckloadresults/getAllLoadResult")
  37. public Map<String, Object> getAllLoadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  38. @RequestParam("apiId") Integer apiId,
  39. @RequestParam("pageNum") Integer pageNum,
  40. @RequestParam("pageSize") Integer pageSize,
  41. @RequestParam("status") Integer status ,
  42. @RequestParam("orderType") Integer orderType,
  43. @RequestParam("con") String con);
  44. @PostMapping("api/v1/truckTms/tmstruckloadresults/selectLoadResultForConverted")
  45. public Map<String,Object> selectLoadResultForConverted(@RequestBody(required=false) Map<String,Object> mapValue,
  46. @RequestParam("apiId") Integer apiId,
  47. @RequestParam("pageNum") Integer pageNum,
  48. @RequestParam("pageSize") Integer pageSize);
  49. @PostMapping("api/v1/truckTms/tmstruckloadresults/getLoadResultByResultId/{resultId}")
  50. public Map<String,Object> getLoadResultByResultId(@PathVariable("resultId") Integer resultId);
  51. @PostMapping("api/v1/truckTms/tmstruckloadresults/addUnLoadResultForconverted")
  52. public Map<String,Object> addUnLoadResultForconverted(@RequestBody(required = false) Map<String,Object> map);
  53. @PostMapping("api/v1/truckTms/tmstruckloadresults/addCGLoadResult")
  54. public Map<String, Object> addCGLoadResult(@RequestBody(required=false) Map<String,Object> mapValue);
  55. @PostMapping("api/v1/truckTms/tmstruckloadresults/addSaleLoadResult")
  56. public Map<String, Object> addSaleLoadResult(@RequestBody(required=false) Map<String, Object> map);
  57. @PostMapping("api/v1/truckTms/tmstruckloadresults/addSale2LoadResult")
  58. public Map<String, Object> addSale2LoadResult(@RequestBody(required=false) Map<String, Object> map);
  59. @PostMapping("api/v1/truckTms/tmstruckloadresults/updateLoadResult")
  60. public Map<String, Object> updateLoadResult(@RequestBody(required=false) Map<String,Object> mapValue);
  61. @PostMapping("api/v1/truckTms/tmstruckloadresults/getLoadResultById/{resultId}")
  62. public Map<String, Object> getLoadResultById(@PathVariable("resultId") Integer resultId);
  63. @PostMapping("api/v1/truckTms/tmstruckloadresults/deleteLoadResult/{resultId}")
  64. public Map<String, Object> deleteLoadResult(@PathVariable("resultId")Integer resultId);
  65. /*
  66. TmstruckEnfactoryResultController
  67. */
  68. @ApiOperation(value="查询所有的进厂实绩")
  69. @ApiImplicitParams({
  70. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  71. @ApiImplicitParam(name = "apiId(99)", value = "动态表头", required = false, dataType = "Integer"),
  72. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  73. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
  74. @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
  75. })
  76. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/getAllEnFactoryResult")
  77. public Map<String, Object> getAllEnFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  78. @RequestParam("apiId") Integer apiId,
  79. @RequestParam("pageNum") Integer pageNum,
  80. @RequestParam("pageSize") Integer pageSize,
  81. @RequestParam("orderType")Integer orderType,
  82. @RequestParam("con") String con
  83. );
  84. @GetMapping("api/v1/truckTms/tmstruckenfactoryresults/getMaterial")
  85. public Map<String , Object> getMaterial(@RequestParam("orderId") Integer orderId);
  86. @ApiOperation(value="通过采集系统传来的数据新增进厂作业实绩")
  87. @ApiImplicitParams({
  88. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  89. })
  90. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/addEnFactoryResult")
  91. public Map<String, Object> addEnFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue);
  92. @ApiOperation(value="PDA扫描更新进厂作业实绩")
  93. @ApiImplicitParams({
  94. @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
  95. })
  96. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/enFactoryResultByPDA")
  97. public Map<String, Object> enFactoryResultByPDA(@RequestBody(required=false) Map<String,Object> mapValue);
  98. /*
  99. TmstruckWeightResultController
  100. */
  101. @PostMapping("api/v1/truckTms/tmstruckweightresults/getAllJiMaoResult")
  102. public Map<String, Object> getAllJiMaoResult(@RequestBody(required=false) Map<String,Object> mapValue,
  103. @RequestParam("apiId") Integer apiId,
  104. @RequestParam("pageNum") Integer pageNum,
  105. @RequestParam("pageSize") Integer pageSize,
  106. @RequestParam("orderType") Integer orderType,
  107. @RequestParam("con") String con
  108. );
  109. @PostMapping("api/v1/truckTms/tmstruckweightresults/getAllJiPiResult")
  110. public Map<String, Object> getAllJiPiResult(@RequestBody(required=false) Map<String,Object> mapValue,
  111. @RequestParam("apiId") Integer apiId,
  112. @RequestParam("pageNum") Integer pageNum,
  113. @RequestParam("pageSize") Integer pageSize,
  114. @RequestParam("orderType") Integer orderType,
  115. @RequestParam("con") String con);
  116. @PostMapping("api/v1/truckTms/tmstruckweightresults/addJiMaoResult")
  117. public Map<String, Object> addJiMaoResult(@RequestBody Map<String, Object> mapValue);
  118. @PostMapping("api/v1/truckTms/tmstruckweightresults/addJiPiResult")
  119. public Map<String, Object> addJiPiResult(@RequestBody Map<String, Object> mapValue);
  120. /*
  121. TmstruckUnloadResultController
  122. */
  123. @PostMapping("api/v1/truckTms/tmstruckunloadresult/getUnloadResult")
  124. public Map<String, Object> getUnloadResult(@RequestBody(required=false) Map<String,Object> mapValue,
  125. @RequestParam("apiId") Integer apiId,
  126. @RequestParam("pageNum") Integer pageNum,
  127. @RequestParam("pageSize") Integer pageSize,
  128. @RequestParam("orderType") Integer orderType,
  129. @RequestParam("con") String con
  130. );
  131. @PostMapping("api/v1/truckTms/tmstruckunloadresult/addUnloadResult")
  132. public Map<String, Object> addUnloadResult(@RequestBody Map<String, Object> mapValue);
  133. @PostMapping("api/v1/truckTms/tmstruckunloadresult/updateUnloadResult")
  134. public Map<String, Object> updateUnloadResult(@RequestBody Map<String, Object> mapValue);
  135. /*
  136. TmstruckReceiptResultController
  137. */
  138. @PostMapping("api/v1/truckTms/tmstruckreceiptresults/getReceiveResult")
  139. public Map<String, Object> getReceiveResult(@RequestBody(required=false) Map<String,Object> mapValue,
  140. @RequestParam("apiId") Integer apiId,
  141. @RequestParam("pageNum") Integer pageNum,
  142. @RequestParam("pageSize") Integer pageSize,
  143. @RequestParam("orderType") Integer orderType,
  144. @RequestParam("con") String con);
  145. /*
  146. TmstruckLeaveFactoryResultController
  147. */
  148. @PostMapping("api/v1/truckTms/tmstruckleavefactoryresults/getLeaveFactoryResult")
  149. public Map<String, Object> getLeaveFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue,
  150. @RequestParam("apiId") Integer apiId,
  151. @RequestParam("pageNum") Integer pageNum,
  152. @RequestParam("pageSize") Integer pageSize,
  153. @RequestParam("orderType") Integer orderType,
  154. @RequestParam("con") String con,
  155. @RequestParam("carrierSsoId")String carrierSsoId
  156. );
  157. @PostMapping("api/v1/truckTms/tmstruckleavefactoryresults/addLeaveFactoryResult")
  158. public Map<String, Object> addLeaveFactoryResult(@RequestBody(required=false) Map<String,Object> mapValue);
  159. /*
  160. TmstruckMeasureCommissionController
  161. */
  162. @PostMapping("api/v1/truckTms/tmstruckmeasurecommissions/getAllMeasureCommission/{type}")
  163. public Map<String, Object> getAllMeasureCommission(@PathVariable("type") Integer type);
  164. /*
  165. TmstruckQualityResultController
  166. */
  167. @PostMapping("api/v1/truckTms/tmstruckqualityresults/getQualityResult")
  168. public Map<String, Object> getQualityResult(@RequestBody(required=false) Map<String,Object> mapValue,
  169. @RequestParam("apiId") Integer apiId,
  170. @RequestParam("pageNum") Integer pageNum,
  171. @RequestParam("pageSize") Integer pageSize,
  172. @RequestParam("orderType") Integer orderType,
  173. @RequestParam("con")String con);
  174. @PostMapping("api/v1/truckTms/tmstruckqualityresults/getQualityResultById/{resultId}")
  175. public Map<String, Object> getQualityResultById(@PathVariable("resultId") Integer resultId);
  176. @PostMapping("api/v1/truckTms/tmstruckqualityresults/updateQualityResult")
  177. public Map<String, Object> updateQualityResult(@RequestBody(required=false) Map<String,Object> mapValue);
  178. //查询质检实绩
  179. @PostMapping("api/v1/truckTms/tmstruckqualityresults/getQualityResult")
  180. Map<String,Object> selectQualityResultForConverted(@RequestBody(required=false) Map<String,Object> mapValue,
  181. @RequestParam("apiId") Integer apiId,
  182. @RequestParam("pageNum") Integer pageNum,
  183. @RequestParam("pageSize") Integer pageSize);
  184. /**
  185. * TmstruckTotalResult
  186. */
  187. @PostMapping("api/v1/truckTms/tmstrucktotalresults/selectCountList")
  188. Map<String,Object> selectCountList(@RequestBody(required=false) Map<String,Object> mapValue,
  189. @RequestParam("apiId") Integer apiId,
  190. @RequestParam("pageNum") Integer pageNum,
  191. @RequestParam("pageSize") Integer pageSize);
  192. /**
  193. * 下拉框
  194. */
  195. @GetMapping("api/v1/truckTms/dropDown/getDilBatch")
  196. Map<String, Object> getDilBatch();
  197. @GetMapping("api/v1/truckTms/dropDown/getCarrier")
  198. Map<String, Object> getCarrier();
  199. @GetMapping("api/v1/truckTms/dropDown/getLine")
  200. Map<String, Object> getLine();
  201. @GetMapping("api/v1/truckTms/dropDown/getWarehouse")
  202. Map<String, Object> getWarehouse();
  203. @GetMapping("api/v1/truckTms/dropDown/getGatepost")
  204. Map<String, Object> getGatepost();
  205. @GetMapping("api/v1/truckTms/dropDown/getAPO")
  206. Map<String, Object> getAPO();
  207. @GetMapping("api/v1/truckTms/dropDown/getFuCapacityId")
  208. Map<String, Object> getFuCapacityId();
  209. @GetMapping("api/v1/truckTms/dropDown/getPort")
  210. Map<String, Object> getPort();
  211. @GetMapping("api/v1/truckTms/dropDown/getFuMaterial/{type}")
  212. Map<String, Object> getFuMaterial(@PathVariable("type")Integer type);
  213. @GetMapping("api/v1/truckTms/dropDown/getUnloadPoint/{type}")
  214. Map<String, Object> getUnloadPoint(@PathVariable("type") Integer type);
  215. /**
  216. * 包月总实绩
  217. */
  218. @PostMapping("api/v1/truckTms/tmstrucktotalresults/getTmstruckMonthResult")
  219. Map<String,Object> getTmstruckMonthResult(@RequestBody(required=false) Map<String,Object> mapValue,
  220. @RequestParam("apiId") Integer apiId,
  221. @RequestParam("pageNum") Integer pageNum,
  222. @RequestParam("pageSize") Integer pageSize);
  223. /**
  224. *通过运输订单判断下一步是否需要计量,更新汽车衡到计量实绩中
  225. */
  226. @PostMapping("api/v1/truckTms/tmstruckweightresults/{orderId}")
  227. Map<String,Object> isNextNeedJl(@PathVariable("orderId") Integer orderId);
  228. /**
  229. *查询短信实绩
  230. */
  231. @PostMapping("api/v1/truckTms/tmstrucksmsrusults/getSmsResult")
  232. Map<String,Object> getSmsResult(@RequestBody(required=false) Map<String,Object> mapValue,
  233. @RequestParam("apiId") Integer apiId,
  234. @RequestParam("pageNum") Integer pageNum,
  235. @RequestParam("pageSize") Integer pageSize,
  236. @RequestParam("con") String con);
  237. @ApiOperation(value="APP查询进厂实绩")
  238. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/getEnfactoryResultList")
  239. Map<String, Object> getEnfactoryResultList();
  240. @ApiOperation(value="APP通过运输订单id查询进厂实绩")
  241. @PostMapping("api/v1/truckTms/tmstruckenfactoryresults/getEnfactoryMessageByOrderId")
  242. Map<String, Object> getEnfactoryMessageByOrderId(@RequestParam String orderNumber);
  243. @PostMapping("api/v1/truckTms/tmstrucktimetaskresults/getAllTimeTaskResult")
  244. public RESTfulResult getAllTimeTaskResult(@RequestBody(required=false) Map<String,Object> mapValue,
  245. @RequestParam("apiId") Integer apiId,
  246. @RequestParam("pageNum") Integer pageNum,
  247. @RequestParam("pageSize") Integer pageSize,
  248. @RequestParam("con") String con);
  249. @PostMapping("api/v1/truckTms/tmstruckloadresults/addDaZhouToDaGangLoadResult")
  250. Map<String, Object> addDaZhouToDaGangLoadResult(@RequestBody(required = false)Map<String, Object> map);
  251. @ApiOperation(value="新增钢材到异地库达州站驻港人员确定收货")
  252. @PostMapping("api/v1/truckTms/tmstruckreceiptresults/addSteelNzReceiptResult")
  253. public Map<String, Object> addSteelNzReceiptResult(@RequestBody(required = false) Map<String, Object> map);
  254. @PostMapping("api/v1/truckTms/tmstruckweightresults/updateTruckWeight")
  255. public Map<String, Object> updateTruckWeight(@RequestBody List<Map<String, Object>> mapList);
  256. @PostMapping("api/v1/truckTms/tmstruckreturnresults/getAllReturnResult")
  257. public Map<String, Object> getAllReturnResult(@RequestBody(required=false) Map<String,Object> mapValue,
  258. @RequestParam("apiId") Integer apiId,
  259. @RequestParam("pageNum") Integer pageNum,
  260. @RequestParam("pageSize") Integer pageSize,
  261. @RequestParam("orderType") Integer orderType,
  262. @RequestParam("con") String con);
  263. @PostMapping("api/v1/truckTms/selfMachine/getBillOrder")
  264. Map<String, Object> getBillOrder(@RequestParam String orderNumber);
  265. @PostMapping("api/v1/truckTms/selfMachine/getDeliveryOrder")
  266. Map<String, Object> getDeliveryOrder(@RequestParam String orderNumber);
  267. @PostMapping("api/v1/truckTms/statisticalReport/getRLFLReport")
  268. Map<String, Object> getRLFLReport(@RequestBody(required=false) Map<String,Object> mapValue,
  269. @RequestParam("apiId") Integer apiId,
  270. @RequestParam("pageNum") Integer pageNum,
  271. @RequestParam("pageSize") Integer pageSize,
  272. @RequestParam("orderType") Integer orderType
  273. );
  274. @PostMapping("api/v1/truckTms/tmstruckloadresults/cgNzLoadingResult")
  275. Map<String, Object> cgNzLoadingResult(@RequestBody(required = false) Map<String, Object> mapval,
  276. @RequestParam Integer apiId,
  277. @RequestParam Integer pageNum,
  278. @RequestParam Integer pageSize,
  279. @RequestParam Integer orderType,
  280. @RequestParam Integer orderStatus);
  281. @PostMapping("api/v1/truckTms/statisticalReport/getAllSaleReport")
  282. Map<String, Object> getAllSaleReport(@RequestBody(required=false) Map<String,Object> mapValue,
  283. @RequestParam("apiId") Integer apiId,
  284. @RequestParam("pageNum") Integer pageNum,
  285. @RequestParam("pageSize") Integer pageSize,
  286. @RequestParam("carrierSsoId") String carrierSsoId
  287. );
  288. @PostMapping("api/v1/truckTms/statisticalReport/getSporadicSuppliesReport1")
  289. Map<String, Object> getSporadicSuppliesReport1(@RequestBody(required=false) Map<String,Object> mapValue,
  290. @RequestParam("apiId") Integer apiId,
  291. @RequestParam("pageNum") Integer pageNum,
  292. @RequestParam("pageSize") Integer pageSize,
  293. @RequestParam("carrierSsoId") String carrierSsoId
  294. );
  295. @PostMapping("api/v1/truckTms/statisticalReport/getSporadicSuppliesReport2")
  296. Map<String, Object> getSporadicSuppliesReport2(@RequestBody(required=false) Map<String,Object> mapValue,
  297. @RequestParam("apiId") Integer apiId,
  298. @RequestParam("pageNum") Integer pageNum,
  299. @RequestParam("pageSize") Integer pageSize,
  300. @RequestParam("carrierSsoId") String carrierSsoId
  301. );
  302. }