optimize
wet 2 years ago
parent 811d45df43
commit e15ece4bea

File diff suppressed because it is too large Load Diff

@ -1801,6 +1801,11 @@ namespace Myshipping.Application
var sheet = excelwork.GetSheetAt(0);
var order = await _rep.AsQueryable().Where(x => x.Id == bookingId).FirstAsync();
var entity = await _excelrep.AsQueryable().Where(x => x.PId == templateId).OrderBy(x => x.Row).ToListAsync();
if (entity==null) {
throw Oops.Bah("当前模板未设置");
}
//单元格样式
var cellStyle = NpoiExcelExportHelper._.CreateStyle(excelwork, HorizontalAlignment.Center, VerticalAlignment.Center, 10, true, 0);
for (int _row = 0; _row < entity.Max(x => x.Row); _row++)

@ -22,7 +22,6 @@ using System;
using Microsoft.Extensions.Logging;
using System.Reflection;
using System.ComponentModel;
using Myshipping.Application.Service.BookingOrder.Dto;
using Myshipping.Application.ConfigOption;
using System.IO;
using Yitter.IdGenerator;
@ -31,6 +30,7 @@ using Furion.RemoteRequest.Extensions;
using System.Net.Http;
using Myshipping.Core.Service;
using System.Reflection.Emit;
using Myshipping.Application.Service.DataSync.Dto;
namespace Myshipping.Application
{
@ -134,6 +134,34 @@ namespace Myshipping.Application
return entity.Id;
}
/// <summary>
/// 同步订舱
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost("/DataSync/SyncBooking"), ApiUser(ApiCode = "SyncBooking")]
public async Task<long> SyncBooking(SyncBookingOrderDto model)
{
if (string.IsNullOrWhiteSpace(model.BSNO)) {
throw Oops.Bah("主单BSNO未录入");
}
if (string.IsNullOrWhiteSpace(model.CreatedUserName)) {
}
return 0;
}
#endregion

Loading…
Cancel
Save