|
@@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.models.auth.In;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.HashMap;
|
|
@@ -232,15 +233,25 @@ public class TMSController extends BaseRESTfulController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- //框计算计算货权转移中出现的批次
|
|
|
- @PostMapping("/getBatchListForAttorney")
|
|
|
- public Map<String, Object> getBatchListForAttorney(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ //为提货委托查询批次
|
|
|
+ @PostMapping("/getBatchListForAttorney")
|
|
|
+ public Map<String, Object> getBatchListForAttorney(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
Integer apiId,
|
|
|
String con){
|
|
|
- return tmsshipFeign.getBatchListForAttorney(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId, con);
|
|
|
- }
|
|
|
+ return tmsshipFeign.getBatchListForAttorney(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId, con);
|
|
|
+ }
|
|
|
+
|
|
|
+ //为装船指令查询批次
|
|
|
+ @PostMapping("/getBatchListForInstruction")
|
|
|
+ public Map<String, Object> getBatchListForInstruction(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId,
|
|
|
+ String con){
|
|
|
+ return tmsshipFeign.getBatchListForInstruction(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId, con);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
//框计算计算货权转移中出现的批次
|
|
@@ -269,11 +280,15 @@ public class TMSController extends BaseRESTfulController {
|
|
|
public Map<String, Object> getCapacityList(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- Integer apiId) {
|
|
|
- if (mapValue == null) {
|
|
|
- mapValue = new HashMap<>();
|
|
|
- }
|
|
|
- return tmsshipFeign.getCapacityList(mapValue, pageNum, pageSize, apiId);
|
|
|
+ Integer apiId,
|
|
|
+ String con) {
|
|
|
+ return tmsshipFeign.getCapacityList(mapValue==null?new HashMap<String, Object>():mapValue,pageNum, pageSize, apiId,con);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping(value = "/uploadCargoPic")
|
|
|
+ public String uploadCargoPic(@RequestParam ("file") MultipartFile multipartFile){
|
|
|
+ return tmsshipFeign.uploadCargoPic(multipartFile);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -791,8 +806,10 @@ public class TMSController extends BaseRESTfulController {
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
Integer resultType,
|
|
|
+ Integer materialId,
|
|
|
+ Integer supplierId,
|
|
|
String con) {
|
|
|
- return tmsTrainFeign.getTmstrainWagonLoad(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, resultType, con);
|
|
|
+ return tmsTrainFeign.getTmstrainWagonLoad(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, resultType,materialId,supplierId, con);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1322,8 +1339,10 @@ public class TMSController extends BaseRESTfulController {
|
|
|
Integer orderType,
|
|
|
String con,
|
|
|
String userId,
|
|
|
- String userIds){
|
|
|
- return tmsTruckFeign.getAllJiMaoResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con,userId,userIds);
|
|
|
+ String userIds,
|
|
|
+ String startTime,
|
|
|
+ String endTime){
|
|
|
+ return tmsTruckFeign.getAllJiMaoResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con,userId,userIds,startTime,endTime);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查询计皮实绩")
|
|
@@ -1342,8 +1361,10 @@ public class TMSController extends BaseRESTfulController {
|
|
|
Integer orderType,
|
|
|
String con,
|
|
|
String userId,
|
|
|
- String userIds) {
|
|
|
- return tmsTruckFeign.getAllJiPiResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con,userId,userIds);
|
|
|
+ String userIds,
|
|
|
+ String startTime,
|
|
|
+ String endTime) {
|
|
|
+ return tmsTruckFeign.getAllJiPiResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con,userId,userIds,startTime,endTime);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1383,9 +1404,11 @@ public class TMSController extends BaseRESTfulController {
|
|
|
Integer orderType,
|
|
|
String con,
|
|
|
String userId,
|
|
|
- String userIds
|
|
|
+ String userIds,
|
|
|
+ String startTime,
|
|
|
+ String endTime
|
|
|
){
|
|
|
- return tmsTruckFeign.getUnloadResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con,userId,userIds);
|
|
|
+ return tmsTruckFeign.getUnloadResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con,userId,userIds,startTime,endTime);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "添加卸货实绩")
|
|
@@ -1421,9 +1444,11 @@ public class TMSController extends BaseRESTfulController {
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- Integer orderType,String con
|
|
|
+ Integer orderType,String con,
|
|
|
+ String startTime,
|
|
|
+ String endTime
|
|
|
){
|
|
|
- return tmsTruckFeign.getReceiveResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con);
|
|
|
+ return tmsTruckFeign.getReceiveResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, orderType, con,startTime,endTime);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1487,13 +1512,15 @@ public class TMSController extends BaseRESTfulController {
|
|
|
})
|
|
|
@PostMapping("/getQualityResult")
|
|
|
public Map<String, Object> getQualityResult(@RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
- Integer apiId,
|
|
|
- Integer pageNum,
|
|
|
- Integer pageSize,
|
|
|
- Integer orderType,
|
|
|
- String con
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer orderType,
|
|
|
+ String con,
|
|
|
+ String startTime,
|
|
|
+ String endTime
|
|
|
){
|
|
|
- return tmsTruckFeign.getQualityResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,orderType, con);
|
|
|
+ return tmsTruckFeign.getQualityResult(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,orderType, con,startTime,endTime);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "通过ID获取质检实绩 ")
|
|
@@ -1907,8 +1934,8 @@ public class TMSController extends BaseRESTfulController {
|
|
|
|
|
|
@ApiOperation(value = "国产矿物流新增装车")
|
|
|
@PostMapping(value = "/addDomesticLoadResult")
|
|
|
- public Map<String, Object> addDomesticLoadResult(@RequestBody(required = false) Map<String, Object> map) {
|
|
|
- return tmsTrainFeign.addDomesticLoadResult(map);
|
|
|
+ public Map<String, Object> addDomesticLoadResult(@RequestBody(required = false) List<Map<String, Object>> list) {
|
|
|
+ return tmsTrainFeign.addDomesticLoadResult(list);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "国产矿物流补录装车信息")
|
|
@@ -2325,4 +2352,35 @@ public class TMSController extends BaseRESTfulController {
|
|
|
return tmsshipFeign.getPersonByName(personName);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value="获取内转报表")
|
|
|
+ @PostMapping("/getOutFactoryInwardList")
|
|
|
+ public Map<String, Object> getOutFactoryInwardList(@RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ String startTime,
|
|
|
+ String endTime,
|
|
|
+ String orgCode,
|
|
|
+ String isPage,
|
|
|
+ String index) {
|
|
|
+ if (mapValue==null){
|
|
|
+ mapValue=new HashMap<>();
|
|
|
+ }
|
|
|
+ return tmsTruckFeign.getOutFactoryInwardList(mapValue,apiId,pageNum,pageSize,startTime,endTime,orgCode,isPage,index);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据物资名和外轮船名查询采购订单号")
|
|
|
+ @PostMapping(value = "/findPurchaseOrderList")
|
|
|
+ public Map<String, Object> findPurchaseOrderList(@RequestBody(required = false) Map<String, Object> map,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ String materialName,
|
|
|
+ String resultForeignShipName){
|
|
|
+ if(map==null)
|
|
|
+ map=new HashMap<>();
|
|
|
+ System.out.println(map);
|
|
|
+ return tmsTrainFeign.getPurchaseOrderList(map,apiId,pageNum,pageSize,materialName, resultForeignShipName);
|
|
|
+ }
|
|
|
}
|