修改派车任务保存

optimize
jianghaiqing 2 years ago
parent f501a194f3
commit ccfe49b2e3

@ -168,6 +168,11 @@ namespace Myshipping.Application
/// </summary>
public string DispatcherName { get; set; }
/// <summary>
/// 工厂地址
/// </summary>
public string FactoryAddr { get; set; }
/// <summary>
/// 集装箱列表
/// </summary>

@ -165,18 +165,12 @@ namespace Myshipping.Application
entity.UpdatedUserId = UserManager.UserId;
entity.UpdatedUserName = UserManager.Name;
await _taskTruckRepository.AsUpdateable(entity).IgnoreColumns(it => new
await _taskTruckRepository.AsUpdateable(entity).UpdateColumns(it => new
{
it.TenantId,
it.CreatedTime,
it.CreatedUserId,
it.CreatedUserName,
it.IsDeleted,
it.BookingId,
it.TruckId,
it.TruckName,
it.TruckCode,
it.Status,
it.UpdatedTime,
it.UpdatedUserId,
it.UpdatedUserName,
}).ExecuteCommandAsync();
await _taskTruckContaRepository.DeleteAsync(x => x.P_ID == model.PK_ID);

Loading…
Cancel
Save