|
@@ -6,6 +6,7 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import oracle.jdbc.proxy.annotation.Post;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -336,13 +337,18 @@ public class AMScontroller{
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 下拉框
|
|
|
+ * 获取收货地址
|
|
|
* @return
|
|
|
*/
|
|
|
- @GetMapping("getAddressDeliveryAddress")
|
|
|
+ @PostMapping("getAddressDeliveryAddress")
|
|
|
@ApiOperation(value = "得到地址下拉")
|
|
|
- public Map<String, Object> getAddressDeliveryAddress(){
|
|
|
- return amsFeign.getAddressDeliveryAddress();
|
|
|
+ @ApiImplicitParam(name = "apiId",value = "255")
|
|
|
+ public Map<String, Object> getAddressDeliveryAddress(@RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
+ Integer apiId,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ String con){
|
|
|
+ return amsFeign.getAddressDeliveryAddress(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize,con);
|
|
|
}
|
|
|
|
|
|
@GetMapping("getShipperId")
|
|
@@ -490,7 +496,7 @@ public class AMScontroller{
|
|
|
return amsFeign.getSaleOrderReported(mapValue,pageNum,pageSize,apiId);
|
|
|
}
|
|
|
@PostMapping("getAmsSaleOrderApproved")
|
|
|
- @ApiOperation(value = "查询汽运单价信息")
|
|
|
+ @ApiOperation(value = "查询财务已审批销售订单信息")
|
|
|
public Map<String, Object> getAmsSaleOrderApproved(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
@@ -517,7 +523,7 @@ public class AMScontroller{
|
|
|
}
|
|
|
@PostMapping("/addAmsSaleOrder")
|
|
|
Map<String, Object> addAmsSaleOrder(@RequestBody(required = false) Map<String, Object> mapVal) {
|
|
|
- return amsFeign.addAmsSaleOrder(mapVal);
|
|
|
+ return amsFeign.addAmsSaleOrder(mapVal==null?new HashMap<>():mapVal);
|
|
|
}
|
|
|
@PostMapping("getAmsSaleOrderBySaleOrderId")
|
|
|
Map<String, Object> getAmsSaleOrderBySaleOrderId(@RequestParam BigDecimal saleOrderId) {
|
|
@@ -542,7 +548,6 @@ public class AMScontroller{
|
|
|
}
|
|
|
return amsFeign.getSaleOrderUpdateLog(saleOrderId,mapValue, pageNum, pageSize, apiId);
|
|
|
}
|
|
|
-
|
|
|
@GetMapping(value = "getSalePlanName")
|
|
|
@ApiOperation(value="获取销售计划名称")
|
|
|
public Map<String, Object> getSalePlanName(){return amsFeign.getSalePlanName();}
|
|
@@ -716,6 +721,23 @@ public class AMScontroller{
|
|
|
|
|
|
//销售订单-固定派单-公开派单-日计划
|
|
|
|
|
|
+ @ApiModelProperty(value = "展示销售公司已审核的订单")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "105", required = false, dataType = "BigDecimal")
|
|
|
+ })
|
|
|
+ @PostMapping("/getSaleOrderListBySaleCompany")
|
|
|
+ public Map<String,Object> getSaleOrderListBySaleCompany(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId,
|
|
|
+ String con){
|
|
|
+ return amsFeign.getSaleOrderListBySaleCompany(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId, con);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
//展示销售公司已审核销售订单的车序号列表
|
|
|
@PostMapping("/getSaleOrderList")
|
|
@@ -799,17 +821,42 @@ public class AMScontroller{
|
|
|
public Map<String,Object> updateTruckRailDayPlan(@RequestBody Map<String, Object> mapVal) {
|
|
|
return amsFeign.updateTruckRailDayPlan(mapVal);
|
|
|
}
|
|
|
+ @PostMapping("getDayPlanByDayPlanId/{dayplanId}")
|
|
|
+ Map<String,Object> getDayPlanByDayPlanId(@PathVariable("dayplanId") Integer dayplanId){
|
|
|
+ return amsFeign.getDayPlanByDayPlanId(dayplanId);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改日期计划 2021年11月20日03:18:05
|
|
|
+ * @param map
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/updateDayPlan")
|
|
|
+ public Map<String,Object> updateDayPlan(@RequestBody(required = false) Map<String, Object> map){
|
|
|
+ return amsFeign.updateDayPlan(map);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询所有的承运商
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getCarrierMes")
|
|
|
+ public Map<String,Object> getCarrierMes() {
|
|
|
+ return amsFeign.getCarrierMes();
|
|
|
+ }
|
|
|
+
|
|
|
//展示日计划
|
|
|
@PostMapping("/getTruckRailDayPlanList")
|
|
|
@ApiOperation(value = "焦炭日计划")
|
|
|
public Map<String, Object> getTruckRailDayPlan(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- Integer apiId) {
|
|
|
+ Integer apiId,
|
|
|
+ Integer status) {
|
|
|
if (mapValue == null) {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
- return amsFeign.getTruckRailDayPlan(mapValue, pageNum, pageSize, apiId);
|
|
|
+ return amsFeign.getTruckRailDayPlan(mapValue, pageNum, pageSize, apiId, status);
|
|
|
}
|
|
|
//展示日计划
|
|
|
@PostMapping("/getSzTruckRailDayPlanList")
|
|
@@ -817,11 +864,12 @@ public class AMScontroller{
|
|
|
public Map<String, Object> getSzTruckRailDayPlan(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- Integer apiId) {
|
|
|
+ Integer apiId,
|
|
|
+ Integer status) {
|
|
|
if (mapValue == null) {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
- return amsFeign.getSzTruckRailDayPlan(mapValue, pageNum, pageSize, apiId);
|
|
|
+ return amsFeign.getSzTruckRailDayPlan(mapValue, pageNum, pageSize, apiId, status);
|
|
|
}
|
|
|
|
|
|
//新增钢材发往异地库计划
|
|
@@ -955,18 +1003,20 @@ public class AMScontroller{
|
|
|
return amsFeign.lockDispatchSaleOrder(dispatchId, carrierId);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value="查询app端公开抢单")
|
|
|
+ @ApiOperation(value="查询app端承运商已抢到的单")
|
|
|
@PostMapping("/getLockDispatchSaleOrderList")
|
|
|
public Map<String, Object> getLockDispatchSaleOrderList(Integer carrierId) {
|
|
|
return amsFeign.getLockDispatchSaleOrderList(carrierId);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value="查询PC端承运商已抢到的单")
|
|
|
@PostMapping("/selectDispatchSaleOrderList")
|
|
|
public Map<String, Object> selectDispatchSaleOrderList(@RequestBody(required=false) Map<String,Object> mapValue,
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
- Integer pageSize){
|
|
|
- return amsFeign.selectDispatchSaleOrderList(mapValue==null ?new HashMap<>():mapValue, apiId, pageNum, pageSize);
|
|
|
+ Integer pageSize,
|
|
|
+ Integer carrierId){
|
|
|
+ return amsFeign.selectDispatchSaleOrderList(mapValue==null ?new HashMap<>():mapValue, apiId, pageNum, pageSize,carrierId);
|
|
|
}
|
|
|
|
|
|
//获取到站名称
|
|
@@ -989,4 +1039,20 @@ public class AMScontroller{
|
|
|
String con) {
|
|
|
return amsFeign.getAllSteelMaterialMes(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId, con);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "查询PC端公开抢单")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "242", required = false, dataType = "Integer")
|
|
|
+ })
|
|
|
+ @PostMapping("/getPCDispatchSaleOrderList")
|
|
|
+ public Map<String, Object> getPCDispatchSaleOrderList(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId,
|
|
|
+ Integer dispatchType,
|
|
|
+ String con) {
|
|
|
+ return amsFeign.getPCDispatchSaleOrderList(mapValue==null?new HashMap<>():mapValue, pageNum, pageSize, apiId,dispatchType, con);
|
|
|
+ }
|
|
|
}
|