optimize
wet 2 years ago
parent 7cd22c5cff
commit a68d7e2027

@ -1461,7 +1461,7 @@ namespace Myshipping.Application
var model = _vesselinfo.AsQueryable().Filter(null, true).Where(x => x.Vessel == item.Vessel && x.Voyno == item.Voyno && x.TenantId == UserManager.TENANT_ID).First(); var model = _vesselinfo.AsQueryable().Filter(null, true).Where(x => x.Vessel == item.Vessel && x.Voyno == item.Voyno && x.TenantId == UserManager.TENANT_ID).First();
model.ETA = item.ETA; model.ETA = item.ETA;
model.ETD = item.ETD; //model.ETD = item.ETD;
model.ATD = item.ATD; model.ATD = item.ATD;
await _vesselinfo.AsUpdateable(model).IgnoreColumns().ExecuteCommandAsync(); await _vesselinfo.AsUpdateable(model).IgnoreColumns().ExecuteCommandAsync();
var order = await _rep.AsQueryable().Filter(null, true).Where(x => x.VESSEL == item.Vessel && x.VOYNO == item.Voyno && x.TenantId == UserManager.TENANT_ID).ToListAsync(); var order = await _rep.AsQueryable().Filter(null, true).Where(x => x.VESSEL == item.Vessel && x.VOYNO == item.Voyno && x.TenantId == UserManager.TENANT_ID).ToListAsync();
@ -1491,27 +1491,27 @@ namespace Myshipping.Application
}); });
it.ETA = item.ETA; it.ETA = item.ETA;
} }
if (it.ETD != item.ETD) //if (it.ETD != item.ETD)
{ //{
////添加booking日志 // ////添加booking日志
var bid = await _bookinglog.InsertReturnSnowflakeIdAsync(new BookingLog // var bid = await _bookinglog.InsertReturnSnowflakeIdAsync(new BookingLog
{ // {
Type = "Edit", // Type = "Edit",
BookingId = it.Id, // BookingId = it.Id,
TenantId = Convert.ToInt64(UserManager.TENANT_ID), // TenantId = Convert.ToInt64(UserManager.TENANT_ID),
CreatedTime = DateTime.Now, // CreatedTime = DateTime.Now,
CreatedUserId = UserManager.UserId, // CreatedUserId = UserManager.UserId,
CreatedUserName = UserManager.Name // CreatedUserName = UserManager.Name
}); // });
await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail // await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
{ // {
PId = bid, // PId = bid,
Field = "ETD", // Field = "ETD",
OldValue = it.ETD == null ? "" : it.ETD.ToString(), // OldValue = it.ETD == null ? "" : it.ETD.ToString(),
NewValue = item.ETD == null ? "" : item.ETD.ToString(), // NewValue = item.ETD == null ? "" : item.ETD.ToString(),
}); // });
it.ETD = item.ETD; // it.ETD = item.ETD;
} //}
if (it.ATD != item.ATD) if (it.ATD != item.ATD)
{ {
////添加booking日志 ////添加booking日志

@ -9,12 +9,9 @@ namespace Myshipping.Application.Entity
/// </summary> /// </summary>
[SugarTable("djy_vesselinfo")] [SugarTable("djy_vesselinfo")]
[Description("船期信息")] [Description("船期信息")]
public class DjyVesselInfo : PrimaryKeyEntity public class DjyVesselInfo : DBEntityTenant
{ {
/// <summary>
/// 租户Id
/// </summary>
public long? TenantId { get; set; }
/// <summary> /// <summary>
/// 船名 /// 船名
/// </summary> /// </summary>
@ -92,17 +89,7 @@ namespace Myshipping.Application.Entity
public string BSNO { get; set; } public string BSNO { get; set; }
/// <summary>
/// 创建人名称
/// </summary>
public string CreatedUserName { get; set; }
/// <summary>
/// 创建者Id
/// </summary>
//[SugarColumn(ColumnDescription = "创建者Id")]
public long? CreatedUserId { get; set; }
} }

@ -17663,11 +17663,6 @@
船期信息 船期信息
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.Entity.DjyVesselInfo.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:Myshipping.Application.Entity.DjyVesselInfo.Vessel"> <member name="P:Myshipping.Application.Entity.DjyVesselInfo.Vessel">
<summary> <summary>
船名 船名
@ -17758,16 +17753,6 @@
东胜id 东胜id
</summary> </summary>
</member> </member>
<member name="P:Myshipping.Application.Entity.DjyVesselInfo.CreatedUserName">
<summary>
创建人名称
</summary>
</member>
<member name="P:Myshipping.Application.Entity.DjyVesselInfo.CreatedUserId">
<summary>
创建者Id
</summary>
</member>
<member name="P:Myshipping.Application.Entity.DjyVesselInfoDto.BSNO"> <member name="P:Myshipping.Application.Entity.DjyVesselInfoDto.BSNO">
<summary> <summary>
东胜id 东胜id

Loading…
Cancel
Save