diff --git a/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportOpenEditReq.cs b/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportOpenEditReq.cs
index f25ce95a..abe31043 100644
--- a/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportOpenEditReq.cs
+++ b/ds-wms-service/DS.WMS.Core/Op/Dtos/SeaExportOpenEditReq.cs
@@ -15,7 +15,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 业务主键
///
- public long Id { get; set; }
+ public long Id { get; set; }
///
/// 箱信息
@@ -24,7 +24,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 场站Id t_crm_client CUSTNAME
///
- public long YardId { get; set; }
+ public Nullable YardId { get; set; }
///
/// 场站 t_crm_client CUSTNAME
///
@@ -33,7 +33,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 船公司Id
///
- public long CarrierId { get; set; }
+ public Nullable CarrierId { get; set; }
///
/// 船公司
///
@@ -41,7 +41,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 货代公司Id
///
- public long ForwarderId { get; set; }
+ public Nullable ForwarderId { get; set; }
///
/// 货代公司
///
@@ -55,7 +55,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 航线Id
///
- public long LaneId { get; set; }
+ public Nullable LaneId { get; set; }
///
/// 航线
@@ -64,7 +64,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 揽货人Id
///
- public long SaleId { get; set; }
+ public Nullable SaleId { get; set; }
///
/// 揽货人
///
@@ -73,7 +73,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 报关行Id
///
- public long CustomserId { get; set; }
+ public Nullable CustomserId { get; set; }
///
/// 报关行
///
@@ -82,7 +82,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 承运车队Id
///
- public long TruckerId { get; set; }
+ public Nullable TruckerId { get; set; }
///
/// 承运车队
///
@@ -91,7 +91,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 装货港代码
///
- public long LoadPortId { get; set; }
+ public Nullable LoadPortId { get; set; }
///
/// 装货港
@@ -101,7 +101,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 卸货港代码
///
- public long DischargePortId { get; set; }
+ public Nullable DischargePortId { get; set; }
///
/// 卸货港
@@ -116,7 +116,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 船名Id
///
- public long VesselId { get; set; }
+ public Nullable VesselId { get; set; }
///
/// 内部航次
///
@@ -129,7 +129,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 国外代理人Id t_info_client CUSTNAME
///
- public long? AgentId { get; set; }
+ public Nullable AgentId { get; set; }
///
/// 国外代理人 t_info_client CUSTNAME
///
@@ -143,21 +143,21 @@ namespace DS.WMS.Core.Op.Dtos
///
/// Desc:单证
///
- public long Doc { get; set; }
+ public Nullable Doc { get; set; }
///
/// 客服
///
- public long CustomerService { get; set; }
+ public Nullable CustomerService { get; set; }
///
/// 海外客服
///
- public long ForeignCustomerService { get; set; }
+ public Nullable ForeignCustomerService { get; set; }
///
/// 操作员
///
- public long OperatorId { get; set; }
+ public Nullable OperatorId { get; set; }
///
/// ATD
///
@@ -189,24 +189,24 @@ namespace DS.WMS.Core.Op.Dtos
///
/// Desc:业务来源Id
///
- public long SourceId { get; set; }
+ public Nullable SourceId { get; set; }
///
/// Desc:业务来源明细Id
///
- public long SourceDetailId { get; set; }
+ public Nullable SourceDetailId { get; set; }
///
/// 船代Id
///
- public long ShipAgencyId { get; set; }
+ public Nullable ShipAgencyId { get; set; }
///
/// 船代
///
- public long ShipAgency { get; set; }
+ public Nullable ShipAgency { get; set; }
@@ -227,7 +227,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 交货地代码
///
- public long DeliveryPlaceId { get; set; }
+ public Nullable DeliveryPlaceId { get; set; }
///
/// 交货地
@@ -244,7 +244,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 签单地点Id
///
- public long IssuePlaceId { get; set; }
+ public Nullable IssuePlaceId { get; set; }
///
/// 签单地点
@@ -263,7 +263,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// Desc:所属业务部门
///
- public long SaleDeptId { get; set; }
+ public Nullable SaleDeptId { get; set; }
///
/// 代理内容
@@ -278,7 +278,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 委托单位Id
///
- public long CustomerId { get; set; }
+ public Nullable CustomerId { get; set; }
///
/// 委托单位 t_info_client CUSTNAME
///
@@ -291,7 +291,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 销售公司Id
///
- public long SaleOrgId { get; set; }
+ public Nullable SaleOrgId { get; set; }
///
/// 货物标识 S/R/D/O
@@ -317,36 +317,36 @@ namespace DS.WMS.Core.Op.Dtos
///
/// Desc:报检
///
- public bool? IsInspection { get; set; } = false;
+ public bool? IsInspection { get; set; }
///
/// Desc:仅报关
///
- public bool? IsCustoms { get; set; } = false;
+ public bool? IsCustoms { get; set; }
///
/// Desc:订舱
///
- public bool? IsBooking { get; set; } = false;
+ public bool? IsBooking { get; set; }
///
/// Desc:分单签单
///
- public bool? IsHBLNO { get; set; } = false;
+ public bool? IsHBLNO { get; set; }
///
/// Desc:陆运
///
- public bool? IsLand { get; set; } = false;
+ public bool? IsLand { get; set; }
///
/// Desc:使用代理
///
- public bool? IsAgent { get; set; } = false;
+ public bool? IsAgent { get; set; }
///
/// Desc:仓储
///
- public bool? IsStorage { get; set; } = false;
+ public bool? IsStorage { get; set; }
///
@@ -417,7 +417,7 @@ namespace DS.WMS.Core.Op.Dtos
///
/// 收货地点Id
///
- public long ReceiptPlaceId { get; set; }
+ public Nullable ReceiptPlaceId { get; set; }
///
/// 截VGM时间
@@ -433,5 +433,6 @@ namespace DS.WMS.Core.Op.Dtos
/// 主提单号
///
public string MBLNO { get; set; }
+
}
}
diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/BookingSlot/BookingSlotService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/BookingSlot/BookingSlotService.cs
index e7e64d20..5172db25 100644
--- a/ds-wms-service/DS.WMS.Core/Op/Method/BookingSlot/BookingSlotService.cs
+++ b/ds-wms-service/DS.WMS.Core/Op/Method/BookingSlot/BookingSlotService.cs
@@ -3085,13 +3085,16 @@ namespace DS.WMS.Core.Op.Method
CtnInfo = new List()
};
- if (bookingSlotBase.ETD.HasValue)
- {
- bkModel.AccountDate = bookingSlotBase.ETD.Value.ToString("yyyy-MM");
- }
- else
+ if (!model.isOrderImport)
{
- bkModel.AccountDate = DateTime.Now.ToString("yyyy-MM");
+ if (bookingSlotBase.ETD.HasValue)
+ {
+ bkModel.AccountDate = bookingSlotBase.ETD.Value.ToString("yyyy-MM");
+ }
+ else
+ {
+ bkModel.AccountDate = DateTime.Now.ToString("yyyy-MM");
+ }
}
var ctnList = model.slots.SelectMany(b => b.CtnList).ToList();
diff --git a/ds-wms-service/DS.WMS.OpApi/Controllers/BookingSlotServiceController.cs b/ds-wms-service/DS.WMS.OpApi/Controllers/BookingSlotServiceController.cs
index 90522747..15ab7164 100644
--- a/ds-wms-service/DS.WMS.OpApi/Controllers/BookingSlotServiceController.cs
+++ b/ds-wms-service/DS.WMS.OpApi/Controllers/BookingSlotServiceController.cs
@@ -9,6 +9,7 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Owin.Security.Provider;
using Org.BouncyCastle.Crypto;
+using Org.BouncyCastle.Ocsp;
using SqlSugar;
namespace DS.WMS.OpApi.Controllers
@@ -457,5 +458,33 @@ namespace DS.WMS.OpApi.Controllers
return await _bookingSlotStockService.BookingSlotStock(model);
}
#endregion
+
+ #region 保存舱位预甩或换舱
+ ///
+ /// 保存舱位预甩或换舱
+ ///
+ /// 请求详情
+ /// 返回回执
+ [HttpPost]
+ [Route("SaveRolling")]
+ public async Task SaveRolling([FromBody] BookingSlotRollingDto req)
+ {
+ return await _bookingSlotService.SaveRolling(req);
+ }
+ #endregion
+
+ #region 获取舱位预甩或换舱列表
+ ///
+ /// 获取舱位预甩或换舱列表
+ ///
+ /// 舱位ID
+ /// 返回列表
+ [HttpGet]
+ [Route("GetRollingList")]
+ public async Task>> GetRollingList([FromQuery] long slotId)
+ {
+ return await _bookingSlotService.GetRollingList(slotId);
+ }
+ #endregion
}
}