wanghaomei 2 years ago
commit ff709bf850

@ -18,7 +18,7 @@ namespace Myshipping.Application.Entity
/// <summary> /// <summary>
/// 类型 /// 类型
/// </summary> /// </summary>
public BookingTemplateType Type { get; set; } public string Type { get; set; }
/// <summary> /// <summary>
/// 模板内容 /// 模板内容
/// </summary> /// </summary>

@ -892,10 +892,10 @@ namespace Myshipping.Application
{ {
BusinessId = BusinessId, BusinessId = BusinessId,
MBLNO = MBLNO, MBLNO = MBLNO,
YARD = YARD, YARD = YARD==""?null: YARD,
YardCode = YARDID, YardCode = YARDID == ""? null: YARDID,
CARRIER = CARRIER, CARRIER = CARRIER == "" ? null : CARRIER,
CARRIERID = CARRIERID, CARRIERID = CARRIERID == "" ? null : CARRIERID,
isBook = isbook isBook = isbook
}); });
billdto.Children = billTraceList; billdto.Children = billTraceList;
@ -2222,7 +2222,6 @@ namespace Myshipping.Application
} }
#endregion #endregion
public async Task<string> InnerBookingOrClosingEDI(BookingOrClosingEDIOrderDto model) public async Task<string> InnerBookingOrClosingEDI(BookingOrClosingEDIOrderDto model)
{ {
string batchNo = IDGen.NextID().ToString(); string batchNo = IDGen.NextID().ToString();
@ -2524,7 +2523,6 @@ namespace Myshipping.Application
#region 下载订舱、截单EDI #region 下载订舱、截单EDI
/// <summary> /// <summary>
/// 下载订舱、截单EDI /// 下载订舱、截单EDI

@ -39,7 +39,7 @@ namespace Myshipping.Application
var entities = await _rep.AsQueryable() var entities = await _rep.AsQueryable()
.Where(m => m.CreatedUserId == UserManager.UserId) .Where(m => m.CreatedUserId == UserManager.UserId)
.WhereIF(!string.IsNullOrEmpty(input.Title), u => u.Title.Contains(input.Title)) .WhereIF(!string.IsNullOrEmpty(input.Title), u => u.Title.Contains(input.Title))
.WhereIF(input.Type.HasValue, u => u.Type == input.Type) .WhereIF(!string.IsNullOrEmpty(input.Type), u =>u.Type.Contains(input.Type))
.ToPagedListAsync(input.PageNo, input.PageSize); .ToPagedListAsync(input.PageNo, input.PageSize);
return entities.XnPagedResult(); return entities.XnPagedResult();
} }
@ -52,7 +52,7 @@ namespace Myshipping.Application
[HttpPost("/BookingTemplate/add")] [HttpPost("/BookingTemplate/add")]
public async Task Add(AddBookingTemplateInput input) public async Task Add(AddBookingTemplateInput input)
{ {
var c = _rep.Count(x => x.Type == input.Type && x.Title == input.Title); var c = _rep.Count(x => x.Type.Contains(input.Type) && x.Title == input.Title);
if (c > 0) if (c > 0)
{ {
throw Oops.Oh(BookingErrorCode.BOOK101); throw Oops.Oh(BookingErrorCode.BOOK101);

@ -17,7 +17,7 @@ namespace Myshipping.Application
/// <summary> /// <summary>
/// 类型 /// 类型
/// </summary> /// </summary>
public virtual BookingTemplateType Type { get; set; } public virtual string Type { get; set; }
/// <summary> /// <summary>
/// 模板内容 /// 模板内容
@ -91,7 +91,7 @@ namespace Myshipping.Application
/// <summary> /// <summary>
/// 类型 /// 类型
/// </summary> /// </summary>
public virtual BookingTemplateType? Type { get; set; } public virtual string Type { get; set; }
/// <summary> /// <summary>
/// 模板内容 /// 模板内容

Loading…
Cancel
Save