收发通模板修改

optimize
wanghaomei 2 years ago
parent 34c41e1494
commit 101ce04b18

@ -76,8 +76,8 @@ namespace Myshipping.Application
throw Oops.Oh(BookingErrorCode.BOOK111);
}
bt.Content = input.Content;
bt.Remark = input.Remark;
input.Adapt(bt);
await _rep.AsUpdateable(bt).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync();
}

@ -41,7 +41,7 @@ namespace Myshipping.Application
/// <summary>
/// 订舱模板修改输入参数
/// </summary>
public class UpdateBookingTemplateInput
public class UpdateBookingTemplateInput: BookingTemplateInput
{
/// <summary>
/// 主键
@ -49,15 +49,6 @@ namespace Myshipping.Application
[Required(ErrorMessage = "主键不能为空")]
public long Id { get; set; }
/// <summary>
/// 模板内容
/// </summary>
public virtual string Content { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual string Remark { get; set; }
}
/// <summary>

Loading…
Cancel
Save