OtmsFeign.java 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. package com.steerinfo.dil.feign;
  2. import com.steerinfo.framework.controller.RESTfulResult;
  3. import io.swagger.annotations.ApiOperation;
  4. import org.springframework.cloud.openfeign.FeignClient;
  5. import org.springframework.http.MediaType;
  6. import org.springframework.web.bind.annotation.*;
  7. import org.springframework.web.multipart.MultipartFile;
  8. import java.util.*;
  9. @FeignClient(value = "DAL-OTMS-API-DEV", url = "${openfeign.OTMSFeign.url}")
  10. public interface OtmsFeign {
  11. //在途订单列表
  12. @PostMapping("/api/v1/otms/pathDisplay/getInTransitTransportation")
  13. public RESTfulResult getInTransitTransportation(@RequestBody Map<String,Object> mapValue,
  14. @RequestParam(required = true,defaultValue = "468",name = "apiId")Integer apiId,
  15. @RequestParam(required = false,name = "pageNum")Integer pageNum,
  16. @RequestParam(required = false,name = "pageSize")Integer pageSize);
  17. //在途订单列表
  18. @PostMapping("/api/v1/otms/pathDisplay/transportationPerformance")
  19. public RESTfulResult transportationPerformance(@RequestBody Map<String,Object> mapValue,
  20. @RequestParam(required = true,defaultValue = "468",name = "apiId")Integer apiId,
  21. @RequestParam(required = false,name = "pageNum")Integer pageNum,
  22. @RequestParam(required = false,name = "pageSize")Integer pageSize);
  23. //已完成订单列表
  24. @PostMapping("/api/v1/otms/pathDisplay/getFinishTruckOrderInfo")
  25. public RESTfulResult getFinishTruckOrderInfo(@RequestBody Map<String,Object> mapValue,
  26. @RequestParam(required = true,defaultValue = "468",name = "apiId")Integer apiId,
  27. @RequestParam(required = false,defaultValue = "1",name = "pageNum")Integer pageNum,
  28. @RequestParam(required = false,defaultValue = "20",name = "pageSize")Integer pageSize
  29. );
  30. //有异常订单列表
  31. @PostMapping("/api/v1/otms/pathDisplay/getHaveAbnormalTruckOrderInfo")
  32. public RESTfulResult getHaveAbnormalTruckOrderInfo(@RequestBody Map<String,Object> mapValue,
  33. @RequestParam(required = true,defaultValue = "468",name = "apiId")Integer apiId,
  34. @RequestParam(required = false,name = "pageNum")Integer pageNum,
  35. @RequestParam(required = false,name = "pageSize")Integer pageSize);
  36. //车牌号和时间查询路径
  37. @PostMapping("/api/v1/otms/pathDisplay/fullPathVisualizationByCarNumber")
  38. public Object fullPathVisualizationByCarNumber(@RequestBody HashMap mapValue);
  39. //改变当前报警类型
  40. @PostMapping(value = "/api/v1/otms/pathDisplay/inTransitWarn")
  41. public RESTfulResult inTransitWarn(@RequestParam String warnSwitch,@RequestParam String radio);
  42. //查询当前报警类型
  43. @PostMapping(value = "/api/v1/otms/pathDisplay/selectWarnSwitch")
  44. public RESTfulResult selectWarnSwitch();
  45. //通过运输订单号查询全路径
  46. @PostMapping("/api/v1/otms/pathDisplay/fullPath")
  47. public Object fullPath(@RequestParam("orderNumber") String orderNumber) throws Exception;
  48. //获得抵达列表
  49. // @PostMapping("/api/v1/otms/tmstruckarrivalresults/getArrivalResultInfo")
  50. // Map<String, Object> getArrivalResultInfo(@RequestBody(required = false) Map<String, Object> mapValue,
  51. // @RequestParam Integer apiId,
  52. // @RequestParam Integer pageNum,
  53. // @RequestParam Integer pageSize,
  54. // @RequestParam String con,
  55. // @RequestParam String startTime,
  56. // @RequestParam String endTime
  57. // );
  58. //通过运输订单号获得抵达图片
  59. @PostMapping("/api/v1/otms/tmstruckreceiptresults/getArrivalPhoto")
  60. String getReceiptPhoto(@RequestParam String orderNumber);
  61. //获取收货作业照片
  62. @PostMapping("/api/v1/otms/tmstruckreceiptresults/getReceivingPhotoByUrl")
  63. public Map<String,Object> getReceivingPhotoByUrl(@RequestParam String orderNumber);
  64. //获得抵达实集
  65. @PostMapping(value = "/api/v1/otms/tmstruckarrivalresults/addtmstruckArrivalResult",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
  66. public RESTfulResult addtmstruckArrivalResult(@RequestParam("orderNumber")String orderNumber, @RequestParam("resultArrivalAddress")String resultArrivalAddress,@RequestPart("file") MultipartFile file);
  67. //添加签收图片
  68. @PostMapping(value = "/api/v1/otms/pathDisplay/addTmstruckReceiptResult")
  69. public RESTfulResult addTmstruckReceiptResult(@RequestBody Map<String,Object> mapValaue , @RequestParam("num") Integer num, @RequestParam("orderNumber") String orderNumber, @RequestParam("resultArrivalAddress")String resultArrivalAddress, @RequestParam("imgcount3") Integer imgcount3, @RequestParam("imgcount4")Integer imgcount4);
  70. //获得异常信息
  71. @PostMapping("/api/v1/otms/pathDisplay/getTransportAbnormalInfo")
  72. public RESTfulResult getTransportAbnormalInfo(@RequestBody(required=false) Map<String,Object> mapValue,
  73. @RequestParam(name = "apiId",defaultValue = "472") Integer apiId,
  74. @RequestParam(name = "pageNum") Integer pageNum,
  75. @RequestParam(name = "pageSize") Integer pageSize);
  76. //抵达信息列表
  77. @PostMapping("/api/v1/otms/tmstruckreceiptresults/getArrivalResult")
  78. Map<String, Object> getArrivalResult(@RequestBody(required = false) Map<String, Object> mapValue,
  79. @RequestParam Integer apiId,
  80. @RequestParam Integer pageNum,
  81. @RequestParam Integer pageSize,
  82. @RequestParam String con,
  83. @RequestParam String startTime,
  84. @RequestParam String endTime);
  85. //获得抵达图片
  86. @PostMapping("/api/v1/otms/tmstruckreceiptresults/getArrivalPhoto")
  87. String getArrivalPhoto(@RequestParam String orderNumber);
  88. //获得签收实绩
  89. @PostMapping("/api/v1/otms/pathDisplay/getReceiptResult")
  90. Map<String, Object> getReceiptResult(@RequestBody(required = false) Map<String, Object> mapValue,
  91. @RequestParam Integer apiId,
  92. @RequestParam Integer pageNum,
  93. @RequestParam Integer pageSize,
  94. @RequestParam String con,
  95. @RequestParam String startTime,
  96. @RequestParam String endTime
  97. );
  98. @GetMapping("/api/v1/otms/pathDisplay/getCurrentLocation")
  99. public RESTfulResult getCurrentLocation(@RequestParam("capcityNumber") String capcityNumber) throws Exception;
  100. //获取地图顶点
  101. @GetMapping(value = "/api/v1/otms/mapvertexs/findAllAvailableVertex")
  102. public RESTfulResult findAllAvailableVertex();
  103. //获取最佳路径
  104. @GetMapping(value = "/api/v1/otms/mapvertexs/getObtainTheOptimalPath")
  105. public RESTfulResult getObtainTheOptimalPath(@RequestParam("startPoint") String startPoint,@RequestParam("endPoint") String endPoint) throws Exception;
  106. //获取当前订单导航路径
  107. @GetMapping(value = "/api/v1/otms/mapvertexs/getPathByOrderID")
  108. public RESTfulResult getPathByOrderID(@RequestParam("orderId") String orderId,@RequestParam("startStep") String startStep,@RequestParam("endStep") String endStep) throws Exception;
  109. //获取导航可选地点
  110. @GetMapping(value = "/api/v1/otms/mapvertexs/findSelections")
  111. public RESTfulResult findSelections();
  112. @PostMapping("/api/v1/otms/pathDisplay/offLineWarn")
  113. public String offLineWarn(@RequestParam(value = "data") String data) throws Exception;
  114. @PostMapping("/api/v1/otms/pathDisplay/parkWarn")
  115. public String parkWarn(@RequestParam(value = "data",required = false) String data) throws Exception;
  116. @PostMapping("/api/v1/otms/pathDisplay/abnormalLineWarn")
  117. public String abnormalLineWarn(@RequestParam(value = "data") String data) throws Exception;
  118. }