修改派车任务保存

optimize
jianghaiqing 2 years ago
parent 992d978ea1
commit 31b0da47ee

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

Loading…
Cancel
Save