|
@@ -1002,278 +1002,6 @@ public class TMSController extends BaseRESTfulController {
|
|
|
|
|
|
/*======================================汽运==========================================*/
|
|
/*======================================汽运==========================================*/
|
|
|
|
|
|
- @ApiOperation(value="查询运输预约")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
|
- @ApiImplicitParam(name = "apiId(79)", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/getAllPurPlan")
|
|
|
|
- public RESTfulResult getAllPurPlan(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
|
- Integer apiId,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- Integer status) {
|
|
|
|
- if (mapValue == null) {
|
|
|
|
- mapValue = new HashMap<>();
|
|
|
|
- }
|
|
|
|
- return tmsTruckFeign.getAllPurPlan(mapValue, apiId, pageNum, pageSize, status);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /*
|
|
|
|
- 不知道谁写的
|
|
|
|
- */
|
|
|
|
- @PostMapping("/getAllPurPlan/{apiId}")
|
|
|
|
- public RESTfulResult getDetailListByCon(@PathVariable("apiId") Integer apiId,
|
|
|
|
- @RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- String con) {
|
|
|
|
- if (mapValue == null) {
|
|
|
|
- mapValue = new HashMap<>();
|
|
|
|
- }
|
|
|
|
- return tmsTruckFeign.getDetailListByCon(apiId, mapValue, pageNum, pageSize, con);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "通过Id查询请车作业")
|
|
|
|
- @PostMapping("/getPurPlanById/{planId}")
|
|
|
|
- public RESTfulResult getPurPlanById(@PathVariable("planId") Integer planId) {
|
|
|
|
- return tmsTruckFeign.getPurPlanById(planId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "新增运输计划 状态:0")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "amstruckPurplan", value = "运输计划实绩对象", required = false, dataType = "AmstruckPurplan"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/addPurPlan")
|
|
|
|
- public RESTfulResult addPurPlan(@RequestBody Map<String, Object> map) {
|
|
|
|
- return tmsTruckFeign.addPurPlan(map);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "下发运输计划 状态:1")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "planId", value = "运输计划Id", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/sendPurPlan/{planId}")
|
|
|
|
- public RESTfulResult sendPurPlan(@PathVariable("planId") Integer planId) {
|
|
|
|
- return tmsTruckFeign.sendPurPlan(planId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "接收运输计划 状态:2")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "planId", value = "运输计划Id", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/receptionPurPlan/{planId}")
|
|
|
|
- public RESTfulResult receptionPurPlan(@PathVariable("planId") Integer planId) {
|
|
|
|
- return tmsTruckFeign.receptionPurPlan(planId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "逻辑删除运输计划 状态:3")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "planId", value = "运输计划Id", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/deletePurPlan/{planId}")
|
|
|
|
- public RESTfulResult deletePurPlan(@PathVariable("planId") Integer planId) {
|
|
|
|
- return tmsTruckFeign.deletePurPlan(planId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- //**************************************************************************************
|
|
|
|
- @ApiOperation(value = "查询要分派的计划")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
|
- @ApiImplicitParam(name = "apiId(82)", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/getDecomposedPlan")
|
|
|
|
- public RESTfulResult getDecomposedPlan(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
|
- Integer apiId,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- Integer planId,
|
|
|
|
- Integer status) {
|
|
|
|
- return tmsTruckFeign.getDecomposedPlan(mapValue == null? new HashMap<>() : mapValue, apiId, pageNum, pageSize, planId, status);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- //********************************************omsTruckOrderController*****************************
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "查询所有运输订单")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
|
- @ApiImplicitParam(name = "apiId(86)", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/getAllTruckOrder")
|
|
|
|
- public RESTfulResult getAllTruckOrder(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
|
- Integer apiId,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- Integer orderStatus,
|
|
|
|
- Integer planId,
|
|
|
|
- Integer orderType) {
|
|
|
|
- return tmsTruckFeign.getAllTruckOrder(mapValue == null? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderStatus, planId, orderType);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "不适用表头返回数据")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/getAllTruckOrderReturnListMap")
|
|
|
|
- public RESTfulResult getAllTruckOrder(Integer orderStatus, Integer planId, Integer orderType) {
|
|
|
|
- return tmsTruckFeign.getAllTruckOrder(orderStatus, planId, orderType);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "查询所有空闲的运力信息")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
|
- @ApiImplicitParam(name = "apiId(85)", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/getAllCapacity")
|
|
|
|
- public RESTfulResult getAllCapacity(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
|
- Integer apiId,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- Integer carrierId
|
|
|
|
- ) {
|
|
|
|
- if (mapValue == null) {
|
|
|
|
- mapValue = new HashMap<>();
|
|
|
|
- }
|
|
|
|
- return tmsTruckFeign.getAllCapacity(mapValue, apiId, pageNum, pageSize, carrierId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "分解运输计划后 新增订单 或者直接新增订单 ")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "mapValue", value = "运输计划实绩对象", required = false, dataType = "Map"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/addPurOrder")
|
|
|
|
- public RESTfulResult addPurOrder(@RequestBody(required = false) Map<String, Object> mapValue) {
|
|
|
|
- return tmsTruckFeign.addPurOrder(mapValue);
|
|
|
|
- }
|
|
|
|
- // == null ? new HashMap<>() : mapValue
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "修改分派计划")
|
|
|
|
- @PostMapping("/updateOrder")
|
|
|
|
- public RESTfulResult updateOrder(@RequestBody Map<String, Object> map) {
|
|
|
|
- return tmsTruckFeign.updateOrder(map);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "派单")
|
|
|
|
- @PostMapping("/dispatchOrder/{orderId}")
|
|
|
|
- public RESTfulResult dispatchOrder(@PathVariable("orderId") Integer orderId) {
|
|
|
|
- return tmsTruckFeign.dispatchOrder(orderId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "逻辑删除运单")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "planId", value = "运输计划Id", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/deleteOrder")
|
|
|
|
- public RESTfulResult deleteOrder(@RequestBody(required = false) Map<String, Object> map,
|
|
|
|
- Integer planId) {
|
|
|
|
- return tmsTruckFeign.deleteOrder(map, planId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "司机接收、拒绝接单")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "orderId", value = "运输订单Id", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/driverReceiveOrRefuse/{orderId}")
|
|
|
|
- public RESTfulResult driverReceiveOrRefuse(@PathVariable("orderId") Integer orderId, Integer orderReceiveStatus) {
|
|
|
|
- return tmsTruckFeign.driverReceiveOrRefuse(orderId, orderReceiveStatus);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @ApiOperation(value="司机接单信息")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
|
- @ApiImplicitParam(name = "apiId(117)", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/getReceiveRefuseOrder/{orderReceiveStatus}")
|
|
|
|
- public RESTfulResult getReceiveRefuseOrder(@RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
|
- Integer apiId,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- @PathVariable Integer orderReceiveStatus,
|
|
|
|
- Integer orderType,
|
|
|
|
- Integer orderStatus
|
|
|
|
- ){
|
|
|
|
- return tmsTruckFeign.getReceiveRefuseOrder(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum,
|
|
|
|
- pageSize, orderReceiveStatus, orderType, orderStatus);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @ApiOperation(value="司机APP端调用接口查询数据 4 已下发 5 已接收")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "capacityNumber", value = "车牌号", required = false, dataType = "String"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/sendMesToDriver")
|
|
|
|
- public RESTfulResult sendMesToDriver(String capacityNumber, Integer orderStatus){
|
|
|
|
- return tmsTruckFeign.sendMesToDriver(capacityNumber, orderStatus);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value="通过车牌获取所有已拒绝的订单")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "capacityNumber", value = "车牌号", required = false, dataType = "String"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/getRefuseOrderByCapacityNum")
|
|
|
|
- public RESTfulResult sendMesToDriver(String capacityNumber){
|
|
|
|
- return tmsTruckFeign.sendMesToDriver(capacityNumber);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value="通过运输订单ID查询运单信息 包含各个作业路径")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "orderId", value = "订单Id", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/getOrderMesByOrderNum/{orderId}")
|
|
|
|
- public RESTfulResult getOrderMesByOrderNum(@PathVariable("orderId") Integer orderId){
|
|
|
|
- return tmsTruckFeign.getOrderMesByOrderNum(orderId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value="通过运输订单ID查询实绩地点和时间")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "orderId", value = "运输订单Id", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/selectPlaceAndTime/{orderId}")
|
|
|
|
- public RESTfulResult selectPlaceAndTime(@PathVariable("orderId") Integer orderId){
|
|
|
|
- return tmsTruckFeign.selectPlaceAndTime(orderId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value="通过运输订单ID查询运单信息")
|
|
|
|
- @PostMapping("/selectOrderByOrderId/{orderId}")
|
|
|
|
- public RESTfulResult selectOrderByOrderId(@PathVariable("orderId") Integer orderId){
|
|
|
|
- return tmsTruckFeign.selectOrderByOrderId(orderId);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value="查看运输派单")
|
|
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
|
- @ApiImplicitParam(name = "apiId(117)", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
|
|
|
|
- @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
|
|
|
|
- })
|
|
|
|
- @PostMapping("/getTransportDispatch/{orderReceiveStatus}")
|
|
|
|
- public RESTfulResult getTransportDispatch(@RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
|
- Integer apiId,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- @PathVariable Integer orderReceiveStatus,
|
|
|
|
- Integer orderType,
|
|
|
|
- Integer orderStatus){
|
|
|
|
- return tmsTruckFeign.getTransportDispatch(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,
|
|
|
|
- orderReceiveStatus, orderType, orderStatus);
|
|
|
|
- }
|
|
|
|
|
|
|
|
//******************************************TmstruckLoadResultController***********************************
|
|
//******************************************TmstruckLoadResultController***********************************
|
|
|
|
|