|
@@ -3,7 +3,6 @@ package com.steerinfo.dil.controller;
|
|
|
import com.steerinfo.dil.feign.TmsTrainFeign;
|
|
|
import com.steerinfo.dil.feign.TmsTruckFeign;
|
|
|
import com.steerinfo.dil.feign.TmsshipFeign;
|
|
|
-import com.steerinfo.dil.util.PageListAdd;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
@@ -13,7 +12,6 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -437,8 +435,14 @@ public class TMSController {
|
|
|
RESTfulResult addShipmentInstructions(@RequestBody Map<String, Object> omsshipShipmentInstructions) {
|
|
|
return tmsshipFeign.addShipmentInstructions(omsshipShipmentInstructions);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/*======================================火运==========================================*/
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
//************************************TmstrainLoadingResultController********************
|
|
|
@ApiOperation(value="查询装车作业信息")
|
|
|
@ApiImplicitParams({
|
|
@@ -597,6 +601,125 @@ public class TMSController {
|
|
|
return tmsTrainFeign.getUnloadingRouteName();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @ApiOperation(value="查询请车作业")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
+ @ApiImplicitParam(name = "apiId(57)", 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("/getAllWagonPlease")
|
|
|
+ public RESTfulResult getAllWagonPlease(@RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer status){
|
|
|
+
|
|
|
+ return tmsTrainFeign.getAllWagonPlease(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, status);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="通过Id查询请车作业")
|
|
|
+ @PostMapping ("/getWagonPleaseById/{resultId}")
|
|
|
+ public RESTfulResult getWagonPleaseById(@PathVariable("resultId")Integer resultId){
|
|
|
+ return tmsTrainFeign.getWagonPleaseById(resultId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="新增请车作业")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "amstrainWagonPlease", value = "请车作业对象", required = false, dataType = "AmstrainWagonPlease"),
|
|
|
+ })
|
|
|
+ @PostMapping("/addWagonPlease")
|
|
|
+ public RESTfulResult addWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult){
|
|
|
+ return tmsTrainFeign.addWagonPlease(tmstrainPleaseApproveResult);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="修改请车作业")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
|
|
|
+ })
|
|
|
+ @PostMapping("/updateWagonPlease")
|
|
|
+ public RESTfulResult updateWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult){
|
|
|
+ return tmsTrainFeign.updateWagonPlease(tmstrainPleaseApproveResult);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="逻辑删除请车作业 设置状态码为 3")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
|
|
|
+ })
|
|
|
+ @PostMapping("/deleteWagonPlease/{resultId}")
|
|
|
+ public RESTfulResult deleteWagonPlease(@PathVariable("resultId") Integer resultId){
|
|
|
+ return tmsTrainFeign.deleteWagonPlease(resultId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="下发请车作业 设置状态码为 1")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "resultId", value = "请车作业实绩对象", required = false, dataType = "Integer"),
|
|
|
+ })
|
|
|
+ @PostMapping("/sendWagonPlease/{resultId}")
|
|
|
+ public RESTfulResult sendWagonPlease(@PathVariable("resultId") Integer resultId){
|
|
|
+ return tmsTrainFeign.sendWagonPlease(resultId);
|
|
|
+ }
|
|
|
+
|
|
|
+ //下拉框
|
|
|
+
|
|
|
+ @ApiOperation(value="查询所有发货单位")
|
|
|
+ @GetMapping("/getShipper")
|
|
|
+ public RESTfulResult getShipper(){
|
|
|
+ return tmsTrainFeign.getShipper();
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="查询批车作业")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
+ @ApiImplicitParam(name = "apiId(70)", 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("/getApproveAllWagonPlease")
|
|
|
+ public RESTfulResult getApproveAllWagonPlease(@RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize){
|
|
|
+ return tmsTrainFeign.getApproveAllWagonPlease(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="通过Id查询批车作业")
|
|
|
+ @PostMapping ("/getApproveWagonPleaseById/{resultId}")
|
|
|
+ public RESTfulResult getApproveWagonPleaseById(@PathVariable("resultId")Integer resultId){
|
|
|
+ return tmsTrainFeign.getApproveWagonPleaseById(resultId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="新增批车作业")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
|
|
|
+ })
|
|
|
+ @PostMapping("/addApproveWagonPlease")
|
|
|
+ public RESTfulResult addApproveWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult){
|
|
|
+ return tmsTrainFeign.addApproveWagonPlease(tmstrainPleaseApproveResult);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="修改批车作业")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tmstrainPleaseApproveResult", value = "请车作业实绩对象", required = false, dataType = "TmstrainPleaseApproveResult"),
|
|
|
+ })
|
|
|
+ @PostMapping("/updateApproveWagonPlease")
|
|
|
+ public RESTfulResult updateApproveWagonPlease(@RequestBody(required = false) Map<String, Object> tmstrainPleaseApproveResult){
|
|
|
+ return tmsTrainFeign.updateApproveWagonPlease(tmstrainPleaseApproveResult);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="逻辑删除批车作业")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "resultId", value = "请车作业实绩对象", required = false, dataType = "Integer"),
|
|
|
+ })
|
|
|
+ @PostMapping("/deleteApproveWagonPlease/{resultId}")
|
|
|
+ public RESTfulResult deleteApproveWagonPlease(@PathVariable("resultId") Integer resultId){
|
|
|
+ return tmsTrainFeign.deleteApproveWagonPlease(resultId);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/*======================================汽运==========================================*/
|
|
|
|
|
|
@ApiOperation(value="查询运输预约")
|
|
@@ -636,8 +759,8 @@ public class TMSController {
|
|
|
|
|
|
@ApiOperation(value = "通过Id查询请车作业")
|
|
|
@PostMapping("/getPurPlanById/{planId}")
|
|
|
- public RESTfulResult getWagonPleaseById(@PathVariable("planId") Integer planId) {
|
|
|
- return tmsTruckFeign.getWagonPleaseById(planId);
|
|
|
+ public RESTfulResult getPurPlanById(@PathVariable("planId") Integer planId) {
|
|
|
+ return tmsTruckFeign.getPurPlanById(planId);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "新增运输计划 状态:0")
|
|
@@ -692,7 +815,7 @@ public class TMSController {
|
|
|
Integer pageSize,
|
|
|
Integer planId,
|
|
|
Integer status) {
|
|
|
- return tmsTruckFeign.getDecomposedPlan(mapValue, apiId, pageNum, pageSize, planId, status);
|
|
|
+ return tmsTruckFeign.getDecomposedPlan(mapValue == null? new HashMap<>() : mapValue, apiId, pageNum, pageSize, planId, status);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -714,7 +837,7 @@ public class TMSController {
|
|
|
Integer orderStatus,
|
|
|
Integer planId,
|
|
|
Integer orderType) {
|
|
|
- return tmsTruckFeign.getAllTruckOrder(mapValue, apiId, pageNum, pageSize, orderStatus, planId, orderType);
|
|
|
+ return tmsTruckFeign.getAllTruckOrder(mapValue == null? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderStatus, planId, orderType);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "不适用表头返回数据")
|