新增LARA登记

optimize
jianghaiqing 2 years ago
parent ab861a22a7
commit f2c8d33523

@ -12036,6 +12036,56 @@
提单用纸数 提单用纸数
</summary> </summary>
</member> </member>
<member name="T:Myshipping.Application.LaraPaperRegistPostDto">
<summary>
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperRegistPostDto.NumberFrom">
<summary>
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperRegistPostDto.NumberTo">
<summary>
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperRegistPostDto.PageNumbers">
<summary>
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperRegistPostDto.PageSum">
<summary>
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperRegistPostDto.ORDNO">
<summary>
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperRegistPostDto.TaskId">
<summary>
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperRegistPostDto.MBLNO">
<summary>
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperRegistPostDto.OriginalDownTime">
<summary>
</summary>
</member>
<member name="P:Myshipping.Application.LaraPaperRegistPostDto.ISSUETYPE">
<summary>
</summary>
</member>
<member name="T:Myshipping.Application.QueryTaskManageDto"> <member name="T:Myshipping.Application.QueryTaskManageDto">
<summary> <summary>
我的任务查询 我的任务查询
@ -12965,6 +13015,21 @@
<param name="PKIds">任务主键数组</param> <param name="PKIds">任务主键数组</param>
<returns>返回结果</returns> <returns>返回结果</returns>
</member> </member>
<member name="M:Myshipping.Application.ITaskManageService.LaraPaperRegist(System.String[])">
<summary>
LARA提单纸登记
</summary>
<param name="PKIds">任务主键数组</param>
<returns>返回结果</returns>
</member>
<member name="M:Myshipping.Application.ITaskManageService.LaraPaperRegistPost(System.String,Myshipping.Application.LaraPaperRegistPostDto)">
<summary>
请求提单纸登记
</summary>
<param name="taskPKIds">任务主键</param>
<param name="model">提单纸登记请求参数</param>
<returns></returns>
</member>
<member name="T:Myshipping.Application.TaskManageService"> <member name="T:Myshipping.Application.TaskManageService">
<summary> <summary>
任务管理 任务管理
@ -13067,5 +13132,20 @@
<param name="PKIds">任务主键数组</param> <param name="PKIds">任务主键数组</param>
<returns>返回结果</returns> <returns>返回结果</returns>
</member> </member>
<member name="M:Myshipping.Application.TaskManageService.LaraPaperRegistPost(System.String,Myshipping.Application.LaraPaperRegistPostDto)">
<summary>
请求提单纸登记
</summary>
<param name="taskPKIds">任务主键</param>
<param name="model">提单纸登记请求参数</param>
<returns></returns>
</member>
<member name="M:Myshipping.Application.TaskManageService.LaraPaperRegist(System.String[])">
<summary>
LARA提单纸登记
</summary>
<param name="PKIds">任务主键数组</param>
<returns>返回结果</returns>
</member>
</members> </members>
</doc> </doc>

@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application
{
/// <summary>
///
/// </summary>
public class LaraPaperRegistPostDto
{
/// <summary>
///
/// </summary>
public string NumberFrom { get; set; }
/// <summary>
///
/// </summary>
public string NumberTo { get; set; }
/// <summary>
///
/// </summary>
public string PageNumbers { get; set; }
/// <summary>
///
/// </summary>
public int PageSum { get; set; }
/// <summary>
///
/// </summary>
public string ORDNO { get; set; }
/// <summary>
///
/// </summary>
public string TaskId { get; set; }
/// <summary>
///
/// </summary>
public string MBLNO { get; set; }
/// <summary>
///
/// </summary>
public DateTime OriginalDownTime { get; set; } = DateTime.MinValue;
/// <summary>
///
/// </summary>
public string ISSUETYPE { get; set; }
}
}

@ -1,5 +1,8 @@
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using NPOI.POIFS.Crypt.Dsig;
using NPOI.SS.Formula.Functions;
using SqlSugar;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -78,5 +81,21 @@ namespace Myshipping.Application
/// <returns>返回结果</returns> /// <returns>返回结果</returns>
Task<List<LaraPaperCalcInfo>> LaraPaperCalc(string[] PKIds); Task<List<LaraPaperCalcInfo>> LaraPaperCalc(string[] PKIds);
/// <summary>
/// LARA提单纸登记
/// </summary>
/// <param name="PKIds">任务主键数组</param>
/// <returns>返回结果</returns>
Task<TaskManageOrderResultDto> LaraPaperRegist(string[] PKIds);
/// <summary>
/// 请求提单纸登记
/// </summary>
/// <param name="taskPKIds">任务主键</param>
/// <param name="model">提单纸登记请求参数</param>
/// <returns></returns>
Task<TaskManageOrderResultDto> LaraPaperRegistPost(string taskPKIds, LaraPaperRegistPostDto model);
} }
} }

@ -54,6 +54,8 @@ namespace Myshipping.Application
private readonly SqlSugarRepository<TaskOriginalDownloadHisInfo> _taskOriginalDownloadHisInfoRepository; private readonly SqlSugarRepository<TaskOriginalDownloadHisInfo> _taskOriginalDownloadHisInfoRepository;
private readonly SqlSugarRepository<TaskChargesHisInfo> _taskChargesHisInfoRepository; private readonly SqlSugarRepository<TaskChargesHisInfo> _taskChargesHisInfoRepository;
private readonly SqlSugarRepository<BookingOrder> _bookingOrderRepository;
private readonly IDjyWebsiteAccountConfigService _webAccountConfig; private readonly IDjyWebsiteAccountConfigService _webAccountConfig;
private readonly ISysCacheService _cache; private readonly ISysCacheService _cache;
private readonly ILogger<BookingOrderService> _logger; private readonly ILogger<BookingOrderService> _logger;
@ -72,6 +74,7 @@ namespace Myshipping.Application
SqlSugarRepository<TaskStatManageInfo> taskStatManageInfoRepository, SqlSugarRepository<TaskStatManageInfo> taskStatManageInfoRepository,
SqlSugarRepository<TaskOriginalDownloadHisInfo> taskOriginalDownloadHisInfoRepository, SqlSugarRepository<TaskOriginalDownloadHisInfo> taskOriginalDownloadHisInfoRepository,
SqlSugarRepository<TaskChargesHisInfo> taskChargesHisInfoRepository, SqlSugarRepository<TaskChargesHisInfo> taskChargesHisInfoRepository,
SqlSugarRepository<BookingOrder> bookingOrderRepository,
IDjyWebsiteAccountConfigService webAccountConfig, IDjyWebsiteAccountConfigService webAccountConfig,
ISysCacheService cache, ISysCacheService cache,
ILogger<BookingOrderService> logger) ILogger<BookingOrderService> logger)
@ -87,6 +90,7 @@ namespace Myshipping.Application
_taskStatManageInfoRepository = taskStatManageInfoRepository; _taskStatManageInfoRepository = taskStatManageInfoRepository;
_taskOriginalDownloadHisInfoRepository = taskOriginalDownloadHisInfoRepository; _taskOriginalDownloadHisInfoRepository = taskOriginalDownloadHisInfoRepository;
_taskChargesHisInfoRepository = taskChargesHisInfoRepository; _taskChargesHisInfoRepository = taskChargesHisInfoRepository;
_bookingOrderRepository = bookingOrderRepository;
_webAccountConfig = webAccountConfig; _webAccountConfig = webAccountConfig;
_cache = cache; _cache = cache;
@ -1099,7 +1103,7 @@ namespace Myshipping.Application
} }
#endregion #endregion
#region 提单纸页数计算
/// <summary> /// <summary>
/// 提单纸页数计算 /// 提单纸页数计算
/// </summary> /// </summary>
@ -1164,12 +1168,67 @@ namespace Myshipping.Application
} }
catch (Exception ex) catch (Exception ex)
{ {
throw Oops.Bah($"完成任务异常,{0}", ex.Message); throw Oops.Bah($"提单纸页数计算异常,{0}", ex.Message);
} }
return list; return list;
} }
#endregion
/// <summary>
/// 请求提单纸登记
/// </summary>
/// <param name="taskPKIds">任务主键</param>
/// <param name="model">提单纸登记请求参数</param>
/// <returns></returns>
public async Task<TaskManageOrderResultDto> LaraPaperRegistPost(string taskPKIds, LaraPaperRegistPostDto model)
{
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
string batchNo = IDGen.NextID().ToString();
_logger.LogInformation("批次={no} id={id} LARA提单纸登记开始", batchNo, taskPKIds);
try
{
}
catch (Exception ex)
{
throw Oops.Bah($"请求提单纸登记异常,{0}", ex.Message);
}
return result;
}
#region LARA提单纸登记
/// <summary>
/// LARA提单纸登记
/// </summary>
/// <param name="PKIds">任务主键数组</param>
/// <returns>返回结果</returns>
public async Task<TaskManageOrderResultDto> LaraPaperRegist(string[] PKIds)
{
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
string batchNo = IDGen.NextID().ToString();
_logger.LogInformation("批次={no} ids={ids} LARA提单纸登记开始", batchNo, string.Join(",", PKIds));
try
{
}
catch (Exception ex)
{
throw Oops.Bah($"LARA提单纸登记异常,{0}", ex.Message);
}
return result;
}
#endregion
} }

Loading…
Cancel
Save