修改舱位API

usertest
jianghaiqing 4 months ago
parent d5a453940e
commit eef344635a

@ -87,7 +87,13 @@ namespace DS.WMS.Core.Op.Dtos
/// 收货地代码
/// </summary>
[Description("收货地代码")]
public string PlaceReceiptId { get; set; }
public string PlaceReceiptCode { get; set; }
/// <summary>
/// 收货地主键
/// </summary>
[Description("收货地主键")]
public Nullable<long> PlaceReceiptId { get; set; }
/// <summary>
/// 收货地
@ -99,7 +105,12 @@ namespace DS.WMS.Core.Op.Dtos
/// 交货地代码
/// </summary>
[Description("交货地代码")]
public string PlaceDeliveryId { get; set; }
public string PlaceDeliveryCode { get; set; }
/// <summary>
/// 交货地主键
/// </summary>
public Nullable<long> PlaceDeliveryId { get; set; }
/// <summary>
/// 交货地
@ -111,7 +122,12 @@ namespace DS.WMS.Core.Op.Dtos
/// 装货港代码
/// </summary>
[Description("装货港代码")]
public string PortLoadId { get; set; }
public string PortLoadCode { get; set; }
/// <summary>
/// 装货港主键
/// </summary>
public Nullable<long> PortLoadId { get; set; }
/// <summary>
/// 装货港
@ -123,7 +139,12 @@ namespace DS.WMS.Core.Op.Dtos
/// 卸货港代码
/// </summary>
[Description("卸货港代码")]
public string PortDischargeId { get; set; }
public string PortDischargeCode { get; set; }
/// <summary>
/// 卸货港主键
/// </summary>
public Nullable<long> PortDischargeId { get; set; }
/// <summary>
/// 卸货港

@ -138,7 +138,7 @@ namespace DS.WMS.Core.Op.Entity
/// <summary>
/// 装货港主键
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "装货港主键", Length = 10, IsNullable = true)]
[SqlSugar.SugarColumn(ColumnDescription = "装货港主键", IsNullable = true)]
public Nullable<long> PortLoadId { get; set; }
/// <summary>
@ -156,7 +156,7 @@ namespace DS.WMS.Core.Op.Entity
/// <summary>
/// 卸货港主键
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "卸货港主键", Length = 10, IsNullable = true)]
[SqlSugar.SugarColumn(ColumnDescription = "卸货港主键", IsNullable = true)]
public Nullable<long> PortDischargeId { get; set; }
/// <summary>

@ -177,8 +177,8 @@ namespace DS.WMS.Core.Op.Method
|| oldObj.Voyno != model.Voyno
|| oldObj.BookingSlotType != model.BookingSlotType
|| oldObj.CarrierCode != model.CarrierCode
|| oldObj.PortLoadId != model.PortLoadCode
|| oldObj.PortDischargeId != model.PortDischargeCode)
|| oldObj.PortLoadCode != model.PortLoadCode
|| oldObj.PortDischargeCode != model.PortDischargeCode)
{
isNeedUpdateOldStock = true;
}
@ -194,8 +194,8 @@ namespace DS.WMS.Core.Op.Method
ContractNo = oldObj.ContractNo,
Vessel = oldObj.Vessel,
Voyno = oldObj.Voyno,
PortLoadId = oldObj.PortLoadId,
PortDischargeId = oldObj.PortDischargeId,
PortLoadId = oldObj.PortLoadCode,
PortDischargeId = oldObj.PortDischargeCode,
TenantId = long.Parse(user.TenantId)
});
}
@ -372,14 +372,14 @@ namespace DS.WMS.Core.Op.Method
{
DataObj = new BookingSlotBaseApiSaveDto
{
PortDischargeId = model.PortDischargeCode,
PortDischargeCode = model.PortDischargeCode,
PortDischarge = model.PortDischarge,
PortLoadId = model.PortLoadCode,
PortLoadCode = model.PortLoadCode,
PortLoad = model.PortLoad,
PlaceDelivery = model.PlaceDelivery,
PlaceDeliveryId = model.PlaceDeliveryCode,
PlaceDeliveryCode = model.PlaceDeliveryCode,
PlaceReceipt = model.PlaceReceipt,
PlaceReceiptId = model.PlaceReceiptCode,
PlaceReceiptCode = model.PlaceReceiptCode,
}
};
@ -432,7 +432,7 @@ namespace DS.WMS.Core.Op.Method
if (regList[j].name.Equals("PORTLOADID", StringComparison.OrdinalIgnoreCase))
{
isSucc = CheckLabel("PORTLOADID", dto.DataObj.PortLoadId, regList[j].val, regList[j].master, operEnum);
isSucc = CheckLabel("PORTLOADID", dto.DataObj.PortLoadCode, regList[j].val, regList[j].master, operEnum);
if (isSucc)
{
@ -481,7 +481,7 @@ namespace DS.WMS.Core.Op.Method
}
else if (regList[j].name.Equals("PORTDISCHARGEID", StringComparison.OrdinalIgnoreCase))
{
isSucc = CheckLabel("PORTDISCHARGEID", dto.DataObj.PortDischargeId, regList[j].val, regList[j].master, operEnum);
isSucc = CheckLabel("PORTDISCHARGEID", dto.DataObj.PortDischargeCode, regList[j].val, regList[j].master, operEnum);
if (isSucc)
{
@ -1030,7 +1030,7 @@ namespace DS.WMS.Core.Op.Method
else
{
dto.DataObj.PortLoad = portInfo.Data.PortName;
dto.DataObj.PortLoadId = portInfo.Data.EdiCode;
dto.DataObj.PortLoadCode = portInfo.Data.EdiCode;
}
}
else
@ -1077,7 +1077,7 @@ namespace DS.WMS.Core.Op.Method
var portInfo = await PlaceDeliveryToPort(portEnName, portCodeList, () => _mappingPortService.GetAllList());
if (portInfo.Succeeded)
if (!portInfo.Succeeded)
{
Logger.Log(NLog.LogLevel.Info, $"通过交货地城市名称未匹配到港口信息,订舱编号:{dto.DataObj.SlotBookingNo}");
}
@ -1095,7 +1095,7 @@ namespace DS.WMS.Core.Op.Method
}
dto.DataObj.PortDischarge = portInfo.Data?.PortName;
dto.DataObj.PortDischargeId = portInfo.Data?.EdiCode;
dto.DataObj.PortDischargeCode = portInfo.Data?.EdiCode;
@ -1275,8 +1275,8 @@ namespace DS.WMS.Core.Op.Method
|| oldObj.Voyno != model.Voyno
|| oldObj.BookingSlotType != model.BookingSlotType
|| oldObj.CarrierId != model.CarrierId
|| oldObj.PortLoadId != model.PortLoadCode
|| oldObj.PortDischargeId != model.PortDischargeCode)
|| oldObj.PortLoadCode != model.PortLoadCode
|| oldObj.PortDischargeCode != model.PortDischargeCode)
{
isNeedUpdateOldStock = true;
}
@ -1292,8 +1292,8 @@ namespace DS.WMS.Core.Op.Method
ContractNo = oldObj.ContractNo,
Vessel = oldObj.Vessel,
Voyno = oldObj.Voyno,
PortLoadId = oldObj.PortLoadId,
PortDischargeId = oldObj.PortDischargeId,
PortLoadId = oldObj.PortLoadCode,
PortDischargeId = oldObj.PortDischargeCode,
TenantId = long.Parse(user.TenantId)
});
}
@ -1471,7 +1471,7 @@ namespace DS.WMS.Core.Op.Method
var newFile = new OpFile
{
Id = SnowFlakeSingle.Instance.NextId(),
//Id = SnowFlakeSingle.Instance.NextId(),
FileName = fileName,
FilePath = FilePath,
TypeCode = fileTypeCode,
@ -1479,7 +1479,7 @@ namespace DS.WMS.Core.Op.Method
LinkId = boookId,
};
await tenantDb.Insertable(newFile).ExecuteCommandAsync();
await tenantDb.Insertable<OpFile>(newFile).ExecuteCommandAsync();
return DataResult<string>.Success(string.Empty);
}

@ -215,7 +215,7 @@ public class SaasTest
//tenantDb.CodeFirst.InitTables(typeof(SpaceBookingOrder));
//tenantDb.CodeFirst.InitTables(typeof(SpaceBookingOrderCtn));
//tenantDb.CodeFirst.InitTables(typeof(SpaceBookingOrderShipSchedule));
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotBase));
tenantDb.CodeFirst.InitTables(typeof(BookingSlotBase));
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotCtn));
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotStock));
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotAllocation));
@ -227,7 +227,7 @@ public class SaasTest
//tenantDb.CodeFirst.InitTables(typeof(BookingLabel));
//tenantDb.CodeFirst.InitTables(typeof(BookingLabelAllocation));
tenantDb.CodeFirst.InitTables(typeof(InfoClient));
//tenantDb.CodeFirst.InitTables(typeof(InfoClient));
//tenantDb.CodeFirst.InitTables(typeof(CodeThirdParty));
//tenantDb.CodeFirst.InitTables(typeof(CheckBillAutoDetail));
//db.CodeFirst.InitTables(typeof(OpBusinessTruckCtn));

Loading…
Cancel
Save